/* ========== DESIGN TOKENS ========== */
:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --font-main: 'Inter', sans-serif;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.08);
    /* Frosted glass look */
    --glass-bg-hover: rgba(255, 255, 255, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);

    /* Utility Colors */
    --primary-accent: #00f2fe;
    /* Cyan/Blue */
    --verified-blue: #1DA1F2;

    --radius-round: 50%;
    --radius-pill: 50px;
    --radius-lg: 20px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #0a0a0a;
    /* Fallback */
    display: flex;
    justify-content: center;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ========== BACKGROUND ========== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowPulse 20s infinite alternate ease-in-out;
}

@keyframes slowPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(0.8);
    }
}

/* ========== LAYOUT CONTAINER ========== */
.container {
    width: 100%;
    max-width: 480px;
    /* Mobile focused width */
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ========== HEADER & PROFILE ========== */
.profile-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.2rem;
    border-radius: var(--radius-round);
    padding: 4px;
    /* Space for gradient border */
    background: linear-gradient(45deg, #ff0844, #ffb199, #00f2fe);
    animation: spinGradient 4s linear infinite;
}

@keyframes spinGradient {
    100% {
        filter: hue-rotate(360deg);
    }
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-round);
    border: 3px solid #111;
    /* Inner border to separate from gradient */
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #22c55e;
    border: 3px solid #111;
    border-radius: 50%;
}

.username {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    color: var(--verified-blue);
    font-size: 1rem;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

/* Upper Right Share Icon */
.share-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

/* ========== SOCIAL ICONS ========== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-round);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.15) translateY(-3px);
    color: var(--primary-accent);
}

/* ========== LINKS SECTION ========== */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* General Link Card (Glassmorphism) */
.link-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, background 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Embedded Media Card */
.embedded-media {
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.media-header {
    margin-bottom: 0.8rem;
}

.badge {
    background: rgba(255, 8, 68, 0.2);
    color: #ffb199;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.thumbnail-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.link-card:hover .thumbnail {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-round);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.play-btn-overlay:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
}

.media-title {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Standard Link Row */
.standard-link {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    text-align: left;
    gap: 1rem;
}

.link-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.link-title {
    flex-grow: 1;
    font-weight: 600;
    font-size: 1rem;
}

.link-arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.standard-link:hover .link-arrow {
    transform: translateX(3px);
    color: white;
}

/* Highlighted/Primary Action */
.primary-action {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.primary-action .link-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 3rem;
    text-align: center;
}

.watermark {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: background 0.3s;
}

.watermark:hover {
    background: var(--glass-bg);
}

.watermark i {
    color: var(--primary-accent);
}

/* ========== ANIMATIONS ========== */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delays for cascading effect */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

.delay-7 {
    animation-delay: 0.7s;
}