/* ===== TBD - The Living Code 2026 - Dark Fantasy Theme v2 ===== */

/* Google Fonts - Cinzel Decorative (başlıklar) + Inter (gövde) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== Theme Variables ===== */
:root {
    /* Base Dark Theme */
    --bg-primary: #020617;    /* Pure Black / Deepest Slate */
    --bg-secondary: #0f172a;  /* Dark Slate */
    --bg-tertiary: #1e293b;
    --bg-card: rgba(15, 23, 42, 0.96);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Role Colors (Default Explorer/Kaşif) */
    --accent-primary: #facc15;
    --accent-secondary: #eab308;
}

/* Role Specific Adjustments */
body.theme-kasif {
    /* Kaşif: aydınlık, altın tonlu tema */
    --bg-primary: #f9fafb;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    --bg-card: rgba(255, 255, 255, 0.96);
    --text-primary: #020617;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: rgba(15, 23, 42, 0.08);
    --accent-primary: #facc15;
    --accent-secondary: #eab308;
}

body.theme-mimar {
    /* Mimar: koyu, mor tonlu tema */
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(15, 23, 42, 0.96);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-primary: #c084fc;
    --accent-secondary: #a855f7;
}

/* Global Styles using variables */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Kasif (light) parchment text — dark tones */
.theme-kasif .text-parchment-100 { color: #020617 !important; }
.theme-kasif .text-parchment-200 { color: #1f2937 !important; }
.theme-kasif .text-parchment-300 { color: #4b5563 !important; }
.theme-kasif .text-parchment-400 { color: #6b7280 !important; }

/* Mimar (dark) parchment text — light tones */
.theme-mimar .text-parchment-100 { color: #ffffff !important; }
.theme-mimar .text-parchment-200 { color: #e5e7eb !important; }
.theme-mimar .text-parchment-300 { color: #cbd5e1 !important; }
.theme-mimar .text-parchment-400 { color: #94a3b8 !important; }

/* Buttons */
.btn-gold, .btn-wraith-cta, .btn-topbar {
    color: #020617 !important;
    text-shadow: none;
}

/* Fix for footer */
.footer, .footer-wraith {
    background: var(--bg-primary) !important;
    border-top: 1px solid var(--border-color) !important;
}

.footer-link, .nav-link {
    color: var(--text-secondary) !important;
}

.footer-link:hover, .nav-link:hover {
    color: var(--accent-primary) !important;
}

/* ===== Kasif Light Theme Specifics ===== */
.theme-kasif .navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(20px);
}

.theme-kasif .topbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #1f2937;
}

.theme-kasif .topbar span,
.theme-kasif .topbar a {
    color: #374151;
}

.theme-kasif .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-kasif .info-card,
.theme-kasif .role-card,
.theme-kasif .process-card,
.theme-kasif .faq-item,
.theme-kasif .stat-pill,
.theme-kasif .countdown-compact {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #020617 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.theme-kasif .info-card:hover,
.theme-kasif .role-card:hover,
.theme-kasif .process-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(234, 179, 8, 0.3) !important;
}

.theme-kasif .faq-item:hover {
    border-color: rgba(234, 179, 8, 0.35) !important;
}

.theme-kasif .info-card p,
.theme-kasif .info-card span,
.theme-kasif .info-card h3,
.theme-kasif .role-card p,
.theme-kasif .role-card span,
.theme-kasif .role-card h3,
.theme-kasif .process-card p,
.theme-kasif .process-card h3,
.theme-kasif .process-card div,
.theme-kasif .faq-question span,
.theme-kasif .faq-answer p {
    color: #1f2937;
}

.theme-kasif .section-title-wraith,
.theme-kasif h2.section-title-wraith {
    color: #020617 !important;
}

.theme-kasif .footer-wraith {
    background: #f9fafb !important;
    border-top-color: rgba(0, 0, 0, 0.06) !important;
}

.theme-kasif .hero-wraith-bg {
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(252, 230, 138, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(234, 179, 8, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%) !important;
}

.theme-kasif .stat-pill:hover {
    border-color: rgba(234, 179, 8, 0.35) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.theme-kasif .countdown-compact {
    background: rgba(255, 255, 255, 0.95) !important;
}
body.has-topbar {
    padding-top: 7.5rem; /* topbar + nav */
}


/* ===== Noise Texture Overlay (hafif, aydınlık tema) ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===== Navbar ===== */
.navbar {
    backdrop-filter: blur(20px) saturate(1.5);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    transition: top 0.3s ease, background 0.4s ease;
}
body.has-topbar .navbar {
    top: 2.75rem;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-layers {
    position: absolute;
    inset: 0;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(252, 230, 138, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(234, 179, 8, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('/images/hero_bg.png') center/cover no-repeat;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%),
        linear-gradient(90deg, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float-orb 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(234, 179, 8, 0.12);
    top: 15%;
    left: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(212, 168, 67, 0.1);
    bottom: 20%;
    right: -3%;
    animation-delay: 3s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(234, 179, 8, 0.08);
    top: 50%;
    left: 60%;
    animation-delay: 5s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    text-shadow:
        0 0 60px rgba(212, 168, 67, 0.4),
        0 0 120px rgba(212, 168, 67, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-theme-mimar .hero-title {
    color: #fefce8;
    text-shadow:
        0 0 30px rgba(147, 197, 253, 0.7),
        0 0 80px rgba(129, 140, 248, 0.5),
        0 4px 18px rgba(0, 0, 0, 0.9);
}

.hero-year {
    font-family: 'Cinzel Decorative', serif;
    opacity: 0.4;
    font-weight: 400;
    letter-spacing: 0.3em;
}

/* ===== Marquee ===== */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ===== Countdown ===== */
.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 168, 67, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 21, 16, 0.06);
}

.countdown-item:hover {
    border-color: rgba(212, 168, 67, 0.4);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
    transform: translateY(-3px);
}

.countdown-value {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Buttons ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-light));
    color: #0a0a0f;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(212, 168, 67, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold);
    font-family: 'Cinzel Decorative', serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(212, 168, 67, 0.25);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(212, 168, 67, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.15);
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section-badge {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    position: relative;
}

.section-title-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* ===== Info Cards (aydınlık tema) ===== */
.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 243, 0.9));
    border: 1px solid rgba(212, 168, 67, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 21, 16, 0.06);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 67, 0.45);
    box-shadow: 0 12px 40px rgba(26, 21, 16, 0.1), 0 0 24px rgba(212, 168, 67, 0.12);
}

/* ===== Mimar Dark Theme Specifics ===== */
.theme-mimar .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2) !important;
    backdrop-filter: blur(20px);
}

.theme-mimar .topbar {
    background: rgba(15, 23, 42, 0.98) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2) !important;
    color: #e5e7eb;
}

.theme-mimar .topbar span {
    color: #cbd5e1;
}

.theme-mimar .topbar a {
    color: #c084fc;
}

.theme-mimar .mobile-menu {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.theme-mimar .info-card,
.theme-mimar .role-card,
.theme-mimar .process-card,
.theme-mimar .sponsor-card {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    color: #e5e7eb !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.theme-mimar .faq-item {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    color: #e5e7eb !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.theme-mimar .stat-pill,
.theme-mimar .countdown-compact {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    color: #e5e7eb !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.theme-mimar .info-card:hover,
.theme-mimar .role-card:hover,
.theme-mimar .process-card:hover {
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
}

.theme-mimar .faq-item:hover {
    border-color: rgba(168, 85, 247, 0.45) !important;
}

.theme-mimar .stat-pill:hover {
    border-color: rgba(168, 85, 247, 0.4) !important;
    background: rgba(15, 23, 42, 1) !important;
}

.theme-mimar .info-card p,
.theme-mimar .info-card span,
.theme-mimar .info-card h3,
.theme-mimar .role-card p,
.theme-mimar .role-card span,
.theme-mimar .role-card h3,
.theme-mimar .process-card p,
.theme-mimar .process-card h3,
.theme-mimar .process-card div,
.theme-mimar .faq-question span,
.theme-mimar .faq-answer p {
    color: #e5e7eb;
}

.theme-mimar .section-title-wraith,
.theme-mimar h2.section-title-wraith {
    color: #ffffff !important;
}

.theme-mimar .section-voice-label {
    color: #c084fc;
}

.theme-mimar .text-gold-100,
.theme-mimar .text-gold-200,
.theme-mimar .text-gold-300 {
    color: #e9d5ff !important;
}

.theme-mimar .hero-wraith-bg {
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(88, 28, 135, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(30, 64, 175, 0.25) 0%, transparent 55%),
        linear-gradient(180deg, #020617 0%, #0f172a 100%) !important;
}

.theme-mimar .footer-wraith {
    background: #020617 !important;
    border-top-color: rgba(168, 85, 247, 0.2) !important;
}

.theme-mimar .footer {
    background: #020617 !important;
    border-top-color: rgba(168, 85, 247, 0.2);
}

.theme-mimar .footer-link {
    color: #cbd5e1;
}

.theme-mimar .footer-link:hover {
    color: #c084fc;
}

.theme-mimar .nav-link {
    color: #e5e7eb;
}

.theme-mimar .nav-link:hover {
    color: #c084fc;
}

/* Mimar: border-white/* overrides for dark background */
.theme-mimar .border-white\/10,
.theme-mimar .border-white\/5,
.theme-mimar .border-white\/20 {
    border-color: rgba(168, 85, 247, 0.15) !important;
}

/* MİMAR genel metin rengi */
.theme-mimar,
.theme-mimar p,
.theme-mimar span,
.theme-mimar h1,
.theme-mimar h2,
.theme-mimar h3,
.theme-mimar h4,
.theme-mimar h5,
.theme-mimar h6,
.theme-mimar li {
    color: #e5e7eb;
}

.theme-mimar .btn-gold,
.theme-mimar .btn-wraith-cta,
.theme-mimar .btn-topbar,
.theme-mimar .btn-wraith-cta.text-black {
    color: #020617 !important;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(26, 21, 16, 0.15));
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: linear-gradient(90deg, var(--bg-tertiary), var(--bg-secondary), var(--bg-tertiary));
    border-top: 1px solid rgba(212, 168, 67, 0.2);
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2.5rem;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ===== Role Cards ===== */
.role-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 243, 0.9));
    border: 1px solid rgba(212, 168, 67, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(26, 21, 16, 0.06);
}

.role-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(26, 21, 16, 0.12);
}

.role-card:hover::after {
    opacity: 1;
}

.role-card-kasif::after {
    background: radial-gradient(ellipse at bottom left, rgba(212, 168, 67, 0.06), transparent 60%);
}

.role-card-mimar::after {
    background: radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.08), transparent 60%);
}

.role-card-kasif {
    border-left: 3px solid var(--gold);
}

.role-card-mimar {
    border-left: 3px solid var(--accent-secondary);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
    transform: translateX(-50%);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.6), 0 0 40px rgba(212, 168, 67, 0.2);
    z-index: 2;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 67, 0.3);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 24px;
    }

    .timeline-dot {
        left: 24px;
    }
}

/* ===== Sponsor Cards ===== */
.sponsor-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 243, 0.9));
    border: 1px solid rgba(212, 168, 67, 0.25);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 21, 16, 0.06);
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(26, 21, 16, 0.1);
}

.sponsor-card:hover::before {
    opacity: 1;
}

.sponsor-card.diamond::before {
    background: radial-gradient(ellipse at top, rgba(100, 200, 255, 0.06), transparent 60%);
}

.sponsor-card.diamond {
    border-color: rgba(100, 200, 255, 0.3);
}

.sponsor-card.gold-tier::before {
    background: radial-gradient(ellipse at top, rgba(212, 168, 67, 0.06), transparent 60%);
}

.sponsor-card.gold-tier {
    border-color: rgba(212, 168, 67, 0.3);
}

.sponsor-card.silver::before {
    background: radial-gradient(ellipse at top, rgba(180, 180, 200, 0.06), transparent 60%);
}

.sponsor-card.silver {
    border-color: rgba(180, 180, 200, 0.25);
}

.sponsor-card.supporter::before {
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.06), transparent 60%);
}

.sponsor-card.supporter {
    border-color: rgba(168, 85, 247, 0.25);
}

.sponsor-price {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* ===== FAQ ===== */
.faq-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(212, 168, 67, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(26, 21, 16, 0.04);
}

.faq-item:hover {
    border-color: rgba(212, 168, 67, 0.4);
}


.faq-question {
    cursor: pointer;
    font-family: 'Cinzel Decorative', serif;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--gold-dim);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ===== Particles ===== */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.particle-gold {
    background: var(--gold);
    box-shadow: 0 0 6px rgba(212, 168, 67, 0.5);
    animation: rise 10s linear infinite;
}

.particle-purple {
    background: var(--accent-secondary);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
    animation: rise 12s linear infinite;
}

@keyframes rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    5% {
        opacity: 0.7;
        transform: scale(1);
    }

    95% {
        opacity: 0.15;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.3);
    }
}

/* ===== Fade In ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ===== Glow Text ===== */
.glow-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Decorative Divider ===== */
.rune-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.3;
}

.rune-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.rune-divider-line:last-child {
    background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.rune-divider-symbol {
    font-size: 0.7rem;
    color: var(--gold-dim);
    letter-spacing: 0.4em;
}

/* ===== Floating Decoration SVGs ===== */
.deco-float {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
    animation: deco-float 12s ease-in-out infinite;
}

@keyframes deco-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    border-top: 1px solid rgba(212, 168, 67, 0.2);
}

.footer-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-link:hover {
    color: var(--gold);
    transform: translateX(4px);
}

/* ===== Wraith-style: Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.topbar.hidden {
    display: none;
}

.btn-topbar {
    white-space: nowrap;
}

/* ===== Wraith-style: Hero ===== */
.hero-wraith {
    padding-top: 1rem;
}
.hero-wraith-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(252, 230, 138, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(234, 179, 8, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    pointer-events: none;
}


.code-tagline {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
}

.stat-pill {
    transition: border-color 0.2s ease, background 0.2s ease;
}
.countdown-compact {
    transition: border-color 0.2s ease;
}


.btn-wraith-cta {
    box-shadow: 0 2px 12px rgba(212, 168, 67, 0.25);
}
.btn-wraith-cta:hover {
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.35);
}

/* ===== Wraith-style: Section title ===== */
.section-title-wraith {
    letter-spacing: 0.02em;
}

/* ===== Asimetrik UX: Hücre vs Konsey (Ana konsept) ===== */
.section-voice-label {
    opacity: 0.9;
}

/* Hücre: katılımcı sesi — Tam merkezli */
.section-hucre {
    position: relative;
}
.section-hucre::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    max-width: 4px;
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.4), rgba(212, 168, 67, 0.1));
    border-radius: 0 4px 4px 0;
    pointer-events: none;
}
@media (min-width: 768px) {
    .section-hucre .section-hucre-content {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Konsey: sistem sesi — Tam merkezli */
.section-sura {
    position: relative;
}
.section-sura::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    max-width: 4px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.35), rgba(168, 85, 247, 0.08));
    border-radius: 4px 0 0 4px;
    pointer-events: none;
}
@media (min-width: 768px) {
    .section-sura .section-sura-content {
        margin: 0 auto;
        max-width: 100%;
    }
}

/* ===== Wraith-style: Process cards ===== */
.process-card {
    transition: border-color 0.25s ease, background 0.25s ease;
}

/* ===== Wraith-style: Footer ===== */
.footer-wraith {
    background: var(--bg-primary);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Kasif: border-white/* overrides for light background */
.theme-kasif .border-white\/10,
.theme-kasif .border-white\/5,
.theme-kasif .border-white\/20 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Kasif: bg-white/* overlays should be light gray */
.theme-kasif .bg-white\/5,
.theme-kasif .bg-white\/\[0\.02\],
.theme-kasif .bg-white\/\[0\.03\] {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.open {
    max-height: 400px;
}

/* ===== Glass Panel ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 168, 67, 0.2);
}

/* ===== Venue ===== */
.venue-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .venue-features {
        grid-template-columns: 1fr;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }
}

/* ===== GAMIFICATION STYLES ===== */

/* === Live Pulse === */
.live-pulse {
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* === XP Bar === */
.xp-bar-fill {
    transition: width 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.xp-bar-container {
    position: relative;
}

/* === Level Badge === */
.level-badge {
    animation: level-glow 3s ease-in-out infinite;
}

@keyframes level-glow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 12px rgba(245, 213, 90, 0.15); }
}

/* === Level-up Flash === */
.hero-level-up-flash {
    animation: flash-in 0.5s ease-out;
}

@keyframes flash-in {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* === Leaderboard === */
.lb-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.lb-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.lb-tab.active {
    background: rgba(245, 213, 90, 0.1);
    border-color: rgba(245, 213, 90, 0.3);
    color: var(--gold);
}

.lb-panel {
    display: none;
}

.lb-panel.active {
    display: block;
}

.leaderboard-row {
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.leaderboard-top-1 {
    border-color: rgba(245, 213, 90, 0.3) !important;
    background: rgba(245, 213, 90, 0.05) !important;
}

.leaderboard-top-2 {
    border-color: rgba(200, 200, 220, 0.2) !important;
    background: rgba(200, 200, 220, 0.03) !important;
}

.leaderboard-top-3 {
    border-color: rgba(180, 140, 60, 0.2) !important;
    background: rgba(180, 140, 60, 0.03) !important;
}

.rank-badge {
    transition: transform 0.3s ease;
}

.leaderboard-row:hover .rank-badge {
    transform: scale(1.1);
}

/* === Live Feed === */
.feed-container {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
}

.feed-container::-webkit-scrollbar {
    width: 4px;
}

.feed-container::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 2px;
}

.feed-item {
    animation: feed-slide-in 0.4s ease-out;
}

@keyframes feed-slide-in {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === Quest Board === */
.quest-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.quest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.quest-expiring {
    animation: quest-pulse 2s ease-in-out infinite;
}

@keyframes quest-pulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.1); }
    50% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 20px rgba(239, 68, 68, 0.1); }
}

.quest-progress-bar {
    position: relative;
}

/* === Badge Gallery === */
.badge-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.badge-filter:hover {
    background: rgba(255, 255, 255, 0.06);
}

.badge-filter.active {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-secondary);
}

.badge-item {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.badge-earned {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 243, 0.9));
    border-color: rgba(212, 168, 67, 0.25);
}

.badge-earned:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 36px rgba(26, 21, 16, 0.12);
}

.badge-locked {
    background: rgba(235, 230, 220, 0.8);
    border-color: rgba(26, 21, 16, 0.1);
}

.badge-locked:hover {
    border-color: rgba(26, 21, 16, 0.18);
}

.badge-rarity-common { }
.badge-rarity-rare .badge-icon { filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.3)); }
.badge-rarity-epic .badge-icon { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4)); }
.badge-rarity-legendary .badge-icon { filter: drop-shadow(0 0 12px rgba(245, 213, 90, 0.5)); }

.badge-earned .badge-rarity-legendary .badge-icon,
.badge-earned.badge-rarity-legendary .badge-icon {
    animation: legendary-glow 2s ease-in-out infinite;
}

@keyframes legendary-glow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(245, 213, 90, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(245, 213, 90, 0.8)); }
}

/* === Card Market === */
.card-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.card-tab:hover {
    background: rgba(255, 255, 255, 0.06);
}

.card-tab.active {
    background: rgba(245, 213, 90, 0.1);
    border-color: rgba(245, 213, 90, 0.3);
    color: var(--gold);
}

.perspective-1000 {
    perspective: 1000px;
}

.card-flip {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-flip.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    backface-visibility: hidden;
}

.card-front {
    position: relative;
    z-index: 1;
}

.card-back {
    z-index: 0;
}

.card-flip-container:hover .card-flip {
    transform: rotateY(180deg);
}

.card-ticker-content {
    animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Viewer Zone === */
.viewer-profile-card {
    transition: all 0.4s ease;
}

.viewer-profile-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.social-share-btn {
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-2px);
}

.social-share-btn:active {
    transform: scale(0.97);
}


/* === Arena Tabs === */
.arena-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.arena-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.arena-tab.active {
    background: rgba(245, 213, 90, 0.1);
    border-color: rgba(245, 213, 90, 0.3);
    color: var(--gold);
}

.arena-panel {
    display: none;
}

.arena-panel.active {
    display: block;
}

.arena-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.arena-tabs::-webkit-scrollbar {
    display: none;
}

/* === Feed Ticker === */
.feed-ticker-content {
    animation: ticker-scroll 30s linear infinite;
}

/* === Terminology Tooltips === */
.term-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted rgba(212, 168, 67, 0.4);
}

.term-tooltip:hover::after {
    content: attr(data-term);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(212, 168, 67, 0.35);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(26, 21, 16, 0.15);
}

.term-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(212, 168, 67, 0.35);
    z-index: 101;
}

/* === Responsive Gamification === */
@media (max-width: 640px) {
    .badge-item {
        padding: 0.75rem;
    }

    .badge-icon {
        font-size: 1.75rem;
    }

    .card-flip-container:hover .card-flip {
        transform: none;
    }

    .card-flip-container .card-flip.flipped {
        transform: rotateY(180deg);
    }

    .term-tooltip:hover::after {
        left: 0;
        transform: none;
        max-width: 200px;
    }

    .term-tooltip:hover::before {
        left: 20px;
        transform: none;
    }
}