/* =========================================================
   Layout, Glassmorphism & Animations
   ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface-page);
    background-image: 
        radial-gradient(at 50% 0%, rgba(59, 110, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 63, 208, 0.1) 0px, transparent 50%),
        url('../assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    position: relative;
    overflow: hidden;
}

/* Snow Canvas Layer */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-max-width);
    text-align: center;
}

/* Header Section */
.profile-header {
    margin-bottom: 32px;
    animation: fadeInDown var(--duration-base) var(--ease-standard);
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-blue);
    box-shadow: 0 0 20px rgba(59, 110, 255, 0.3);
    margin-bottom: 16px;
    transition: transform var(--duration-base) var(--ease-standard);
}

.avatar:hover {
    transform: scale(1.05);
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
    text-shadow:
        0 0 16px rgba(59, 110, 255, 0.8),
        0 0 40px rgba(59, 110, 255, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.9);
}

.verified-badge {
    color: var(--brand-blue);
    font-size: 16px;
}

.profile-subtitle {
    font-size: 13px;
    color: #dce4f0;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow:
        0 0 12px rgba(59, 110, 255, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Link List Section */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--control-touch-min);
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 12px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--duration-base) var(--ease-standard);
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 400ms var(--ease-standard) forwards;
}

/* Staggered Delay */
.link-card:nth-child(1) { animation-delay: 100ms; }
.link-card:nth-child(2) { animation-delay: 200ms; }
.link-card:nth-child(3) { animation-delay: 300ms; }
.link-card:nth-child(4) { animation-delay: 400ms; }
.link-card:nth-child(5) { animation-delay: 500ms; }

.link-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 110, 255, 0.2);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.link-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--brand-blue);
}

.click-badge {
    background: var(--accent-soft);
    border: 1px solid rgba(59, 110, 255, 0.3);
    color: var(--brand-blue);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 4px;
}

.click-badge.pulse {
    animation: badgePulse 300ms var(--ease-standard);
}

/* Keyframes */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .link-card, .profile-header, .click-badge.pulse {
        animation: none !important;
        transform: none !important;
    }
}