/* Premium CSS Design System for Tania Brooks Link-in-Bio */

:root {
    --bg-dark: #07070a;
    --card-bg: rgba(18, 18, 24, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #cacaca;
    --text-muted: #8e8e93;
    --accent-red: #ff2d55;
    --accent-red-glow: rgba(255, 45, 85, 0.6);
    --accent-green: #34c759;
    --accent-blue: #00a8ff;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --glow-color: rgba(255, 45, 85, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Background Ken Burns Effect and Overlay */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-image-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    filter: blur(40px) brightness(0.35) contrast(1.1);
    transform: scale(1.05);
    z-index: 1;
}

.bg-image-clean {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.05);
    animation: kenburns 30s ease-in-out infinite;
    filter: brightness(0.65) contrast(1.1);
    z-index: 2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(7, 7, 10, 0.3) 0%,
        rgba(7, 7, 10, 0.7) 40%,
        rgba(7, 7, 10, 0.95) 100%
    );
}

/* Ambient Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 45, 85, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(142, 68, 173, 0.2) 0%, transparent 40%);
}

/* Main Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    z-index: 1;
}

/* Profile Card */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-radius: 28px;
    padding: 32px 24px;
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

/* Avatar Container with Glow */
.avatar-container {
    position: relative;
    width: 116px;
    height: 116px;
    margin-bottom: 18px;
}

#avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--accent-red-glow);
    animation: avatarPulse 2.5s infinite alternate;
    pointer-events: none;
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: var(--accent-green);
    border: 3px solid #121218;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: statusPulse 1.8s infinite;
}

/* Profile Name */
.profile-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.verified-badge {
    width: 22px;
    height: 22px;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,180,216,0.3));
}

/* Badges Layout */
.status-badge-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.status-badge, .location-badge {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge {
    background: rgba(52, 199, 89, 0.12);
    color: #4cd964;
    border-color: rgba(52, 199, 89, 0.2);
}

.status-badge .pulse-ring {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--accent-green);
}

.location-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.location-icon {
    width: 14px;
    height: 14px;
    color: #ff9f0a;
}

/* Bio Description */
.profile-bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    font-weight: 400;
    margin-top: 4px;
    white-space: pre-line;
}

/* Links Grid */
.links-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* High-Converting Main Link Card */
.link-card {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.link-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    filter: brightness(0.7) contrast(1.05);
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: 1;
}

.link-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(7, 7, 10, 0.4) 40%,
        rgba(7, 7, 10, 0.85) 100%
    );
    z-index: 2;
    transition: background 0.3s ease;
}

.link-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.2px;
}

.link-card-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.link-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 45, 85, 0.4);
    z-index: 3;
    letter-spacing: 0.5px;
}

/* Animations for Links */
.pulse-glow {
    animation: buttonPulse 3s infinite ease-in-out, buttonGlow 3s infinite ease-in-out;
}

/* Hover States for Link Card */
.link-card:hover {
    transform: scale(1.03);
    border-color: var(--accent-red);
}

.link-card:hover .link-card-bg {
    transform: scale(1.06);
    filter: brightness(0.85) contrast(1.1);
}

.link-card:hover .link-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(7, 7, 10, 0.2) 30%,
        rgba(7, 7, 10, 0.75) 100%
    );
}

/* Footer Section */
.footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Card Disclaimer Styles */
.link-card-disclaimer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Link icon in top left */
.disclaimer-link-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.7);
}

/* Center eye slash icon */
.disclaimer-eye-icon {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
}

.disclaimer-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    text-align: center;
    letter-spacing: -0.1px;
    text-transform: capitalize;
}

.disclaimer-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    text-align: center;
    max-width: 290px;
    line-height: 1.35;
}

.disclaimer-btn {
    background-color: #ffffff;
    color: #07070a;
    border: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 32px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.disclaimer-btn:hover {
    transform: scale(1.03);
    background-color: #f0f0f0;
}

/* Active State Classes */
.link-card.show-disclaimer .link-card-content,
.link-card.show-disclaimer .link-card-badge {
    opacity: 0 !important;
    pointer-events: none !important;
}

.link-card.show-disclaimer .link-card-bg {
    filter: blur(14px) brightness(0.4) contrast(1.1) !important;
    transform: scale(1.06) !important;
}

.link-card.show-disclaimer .link-card-disclaimer {
    opacity: 1;
    pointer-events: auto;
}

/* Animations Keyframes */
@keyframes kenburns {
    0% { transform: scale(1.03) translate(0, 0); }
    50% { transform: scale(1.09) translate(-1%, -0.5%); }
    100% { transform: scale(1.03) translate(0, 0); }
}

@keyframes avatarPulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 45, 85, 0.2);
        border-color: rgba(255, 45, 85, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 45, 85, 0.7);
        border-color: rgba(255, 45, 85, 0.6);
    }
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 45, 85, 0.2);
        border-color: rgba(255, 255, 255, 0.12);
    }
    50% {
        box-shadow: 0 10px 30px rgba(255, 45, 85, 0.45), 0 0 20px rgba(255, 45, 85, 0.6);
        border-color: rgba(255, 45, 85, 0.6);
    }
    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 45, 85, 0.2);
        border-color: rgba(255, 255, 255, 0.12);
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .container {
        padding: 20px 14px;
    }
    .profile-card {
        padding: 24px 18px;
    }
    .link-card {
        height: 200px;
    }
    .link-card-title {
        font-size: 20px;
    }
}

/* Desktop Layout Adjustments */
@media (min-width: 992px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        width: 100%;
    }

    .bg-image-clean {
        width: 100%;
        left: 0;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        transform: none !important;
        animation: none !important;
        filter: brightness(0.65) contrast(1.1);
    }
    
    .container {
        margin: 0 auto;
        padding: 40px 20px;
        min-height: 100vh;
        position: relative;
        z-index: 10;
    }
}

