/* style.css - Ultimate Poppins Space Star-Grid Orange Design System */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Cosmic Deep Space Dark Theme Color Palette */
    --bg-color: #020100;
    --bg-gradient: radial-gradient(circle at top, #140700 0%, #000000 100%);
    
    /* Vibrant bright orange-yellowish gradient tokens */
    --accent-gradient: linear-gradient(135deg, #ff5000 0%, #ffb300 100%);
    --accent-color: #ff6c00; 
    --accent-glow: rgba(255, 108, 0, 0.45);
    
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 108, 0, 0.03);
    --card-hover-border: rgba(255, 108, 0, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --verified-badge: #0095f6; /* Instagram blue verified check */
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Beautiful ultra-clean cosmic space background with twinkle stars */
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at top, #1a0b02 0%, #000000 100%),
        radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 350px 350px, 200px 200px;
    background-position: 0 0, 40px 60px, 110px 140px;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    /* Slow breathing stardust twinkle animation */
    animation: stardustTwinkle 20s infinite linear alternate;
}

@keyframes stardustTwinkle {
    0% { background-position: 0 0, 40px 60px, 110px 140px; }
    100% { background-position: 0 0, 60px 100px, 80px 180px; }
}

/* Animated Ambient Glow Aurora elements in the background - z-index 1 (Deep Space) */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.38;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 80, 0, 0.18) 0%, rgba(255, 80, 0, 0) 70%);
    top: -150px;
    left: -100px;
    animation: floatAurora1 20s infinite ease-in-out alternate;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.14) 0%, rgba(255, 179, 0, 0) 70%);
    bottom: 10%;
    right: -150px;
    animation: floatAurora2 24s infinite ease-in-out alternate;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0) 70%);
    top: 30%;
    left: -180px;
    animation: floatAurora1 28s infinite ease-in-out alternate-reverse;
}

@keyframes floatAurora1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.15); }
}

@keyframes floatAurora2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-70px, -60px) scale(0.95); }
}

/* Center App Wrapper - Solid Dark Backing ensures zero background line bleeding */
.app-container {
    width: 100%;
    max-width: 540px;
    min-height: 100vh;
    background: #050404; /* Solid matte black to prevent background line transparency bleed-through */
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.98);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px;
    z-index: 10;
}

/* Header & Cover Banner */
.header-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.cover-photo {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Dark cover gradient fading into body */
.cover-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to top, #050404 0%, rgba(5, 4, 4, 0.4) 60%, rgba(5, 4, 4, 0) 100%);
}

/* Profile Picture & Details */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -110px; /* Adjusted overlap for larger profile picture */
    position: relative;
    z-index: 10;
    padding: 0 24px;
    text-align: center;
}

/* Profile picture slightly larger (156px) */
.avatar-container {
    position: relative;
    width: 156px;
    height: 156px;
    margin-bottom: 18px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #ff5000 0%, #ffb300 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 25px rgba(255, 108, 0, 0.4);
    transition: var(--transition-bounce);
}

.avatar-container:hover {
    transform: scale(1.06) rotate(4deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.7), 0 0 35px rgba(255, 108, 0, 0.6);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #050404;
}

.username-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.profile-username {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Original Instagram verified badge */
.verified-badge {
    color: var(--verified-badge);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px rgba(0, 149, 246, 0.5));
    animation: badge-pulse 2.2s infinite ease-in-out;
}

/* Instagram-style handle design under Ad Soyad */
.profile-handle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff8c00;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 85%;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* Beautiful Interactive Glassmorphic Tags under Bio with FA Icons */
.profile-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.profile-tag {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 108, 0, 0.06);
    border-color: rgba(255, 108, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 108, 0, 0.12);
    color: #ffa500;
}

.tag-icon {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Highly engaging flag-free sliding language selector */
.language-selector {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-gradient); /* Active language matches theme gradient */
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(255, 108, 0, 0.4);
}

/* Category Tab switchers - Symmetrical Flex Sizing (50% / 50% split) */
.tab-switcher-container {
    width: calc(100% - 48px);
    margin: 0 auto 28px auto;
    padding: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.tab-btn {
    flex: 1; /* Stretch both tab buttons equally to take exactly 50% width! */
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff; 
    opacity: 0.6;
    cursor: pointer;
    text-align: center;
    border-radius: 12px;
    transition: var(--transition-smooth);
    white-space: normal; /* Allow text to wrap cleanly to prevent clipping */
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover {
    opacity: 0.9;
}

.tab-btn.active {
    color: #ffffff !important;
    background: var(--accent-gradient); /* Tab matches orange-yellow gradient */
    opacity: 1;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 80, 0, 0.45);
}

/* Links Layout Content Cards */
.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
    width: 100%;
    animation: slideUpFade 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
    display: flex;
}

/* Sleek, Premium Glassmorphic Link Card Item (Stripe/Vercel standard - Extremely Premium) */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px; /* Ultra-modern smooth curve radius */
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4), 
        inset 0 1px 1px rgba(255, 255, 255, 0.1); /* Elegant inner reflection gloss */
    overflow: hidden; /* Contains the dynamic sheen sweep transition */
    z-index: 5;
}

/* Dynamic Sweep Shine Animation Overlay */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

/* Hover State - Minimal Luxury Neon Glow & Physical Elevation */
.link-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--accent-color); /* Theme accent color themed glow border */
    box-shadow: 
        0 20px 45px var(--accent-glow), 
        0 8px 25px rgba(0, 0, 0, 0.6), 
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.link-card:hover::before {
    left: 150%; /* Smooth interactive light sweep */
}

/* Premium Icon Box Design - fully integrated with FontAwesome */
/* Icons are white normal state AND white on hover */
.link-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.35rem;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 3;
}

.link-icon-box i {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

/* Hover Icon Box - very clean transition with high-fidelity glow */
.link-card:hover .link-icon-box {
    background: var(--accent-gradient);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(255, 80, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.08) rotate(-4deg); /* Beautiful micro twist */
}

.link-card:hover .link-icon-box i {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Text Content Column */
.link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; 
    position: relative;
    z-index: 3;
}

/* Premium Inline Title & Badge Placement */
.link-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.link-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600; /* Beautiful solid weight */
    letter-spacing: -0.3px;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    transition: all 0.3s ease;
}

.link-card:hover .link-title {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* High Contrast, Bright Orange-Yellowish Badge Styling with White Text */
.badge-pill {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800; /* Bold */
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    color: #ffffff !important; /* Solid pure white text */
    background: var(--accent-gradient) !important; /* Vivid bright orange-yellowish gradient background */
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.4);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badge-glow 2s infinite ease-in-out;
}

/* Right Chevron Arrow styling in a beautiful micro circular capsule */
.arrow-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.link-card:hover .arrow-icon {
    color: #ffffff;
    background: var(--accent-glow);
    border-color: var(--accent-color);
    transform: translateX(4px);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Social Media Footer */
.socials-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 0 24px;
}

/* Social icons are white normal AND white on hover */
.social-circle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.social-circle i {
    color: #ffffff !important;
}

.social-circle:hover {
    transform: translateY(-5px) rotate(4deg);
    background: var(--accent-gradient);
    color: #ffffff !important; 
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 108, 0, 0.4);
}

.social-circle:hover i {
    color: #ffffff !important;
}

/* Animations declarations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(0, 149, 246, 0.5)); }
    100% { transform: scale(1); }
}

@keyframes badge-glow {
    0% { filter: brightness(1); box-shadow: 0 0 10px rgba(255, 80, 0, 0.3); }
    50% { filter: brightness(1.25); box-shadow: 0 0 18px rgba(255, 80, 0, 0.65); }
    100% { filter: brightness(1); box-shadow: 0 0 10px rgba(255, 80, 0, 0.3); }
}

/* Safari & iOS WebKit Click Event Propagation Fixes */
.link-card > * {
    pointer-events: none;
}
.social-circle > * {
    pointer-events: none;
}

/* ELITE MOBILE RESPONSIVE SYSTEM (100% flawless mobile alignments, scrollable rows) */
@media (max-width: 580px) {
    .app-container {
        border-left: none;
        border-right: none;
        box-shadow: none;
        max-width: 100vw;
        width: 100vw;
        border-radius: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .cover-photo {
        height: 220px;
    }

    /* Floating language selector adjustments to prevent overlapping banners */
    .language-selector {
        top: 16px;
        right: 16px;
        padding: 2px;
    }

    .lang-btn {
        padding: 5px 12px;
        font-size: 0.74rem;
    }

    .profile-card {
        margin-top: -85px; /* Perfect overlap ratio */
        padding: 0 16px;
    }

    /* Profile picture size adapted to standard smartphone viewports */
    .avatar-container {
        width: 140px;
        height: 140px;
        margin-bottom: 14px;
    }

    .profile-username {
        font-size: 1.65rem;
        letter-spacing: -0.5px;
    }

    .profile-bio {
        font-size: 0.88rem;
        max-width: 100%;
        margin-bottom: 12px;
    }

    /* Scrollable Profile tags on mobile (never wrap or squeeze awkwardly!) */
    .profile-tags {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding: 4px 16px;
        -webkit-overflow-scrolling: touch;
    }
    
    .profile-tags::-webkit-scrollbar {
        display: none; /* Hide scrollbars for native look */
    }

    .profile-tag {
        flex: 0 0 auto;
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    /* Symmetrical flex 50/50 division layout on mobile (prevent scroll overlapping scrollbar bugs) */
    .tab-switcher-container {
        width: calc(100% - 32px);
        display: flex;
        overflow: visible; /* Disable scroll overflow to prevent clipping bugs! */
        white-space: normal;
        gap: 6px;
        padding: 4px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .tab-btn {
        flex: 1; /* Keep exact 50% width division */
        padding: 10px 6px;
        font-size: 0.78rem; /* Slightly smaller font for mobile viewports */
        border-radius: 8px;
        line-height: 1.3;
    }

    .tab-content {
        padding: 0 16px;
        gap: 12px;
    }

    /* Card list adjustments for smartphone limits */
    .link-card {
        padding: 16px 20px;
        border-radius: 16px;
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.3), 
            inset 0 1px 1px rgba(255, 255, 255, 0.08);
    }

    .link-icon-box {
        width: 44px;
        height: 44px;
        margin-right: 14px;
        font-size: 1.25rem;
        border-radius: 12px;
    }

    .link-title-row {
        gap: 10px;
        flex-wrap: wrap; /* Safe wrapping on ultra-narrow layouts */
    }

    .link-title {
        font-size: 0.98rem;
    }

    .badge-pill {
        font-size: 0.64rem;
        padding: 3px 8px;
        border-radius: 5px;
    }

    .arrow-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-left: 8px;
    }

    .socials-footer {
        margin-top: 32px;
        gap: 12px;
    }

    .social-circle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.1rem;
    }
}