/* ===== LexiLegend Theme ===== */
:root {
    --ll-bg-dark: #0D1B2A;
    --ll-bg-mid: #1B263B;
    --ll-bg-surface: #100C25;
    --ll-primary: #5E60CE;
    --ll-primary-light: #7B7FD4;
    --ll-secondary: #8E7AB5;
    --ll-accent: #FFAE42;
    --ll-gold: #FFD700;
    --ll-glow: #5BF3E3;
    --ll-text: #E0E0E0;
    --ll-text-muted: #CAC4D0;
    --ll-card-bg: rgba(30, 25, 60, 0.7);
    --ll-card-border: rgba(94, 96, 206, 0.3);
}

/* ===== Global ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Spectral', Georgia, serif;
    background: linear-gradient(135deg, var(--ll-bg-dark), var(--ll-bg-mid));
    color: var(--ll-text);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .ll-brand-text, .ll-heading {
    font-family: 'Cinzel Decorative', 'Georgia', serif;
}

/* ===== Starfield Canvas ===== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== Navbar ===== */
.ll-navbar {
    background: rgba(13, 27, 42, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ll-card-border);
    padding: 0.6rem 0;
}

.ll-navbar .nav-link {
    color: var(--ll-text-muted) !important;
    font-family: 'Spectral', serif;
    font-weight: 400;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 0.5rem 1rem !important;
}

.ll-navbar .nav-link:hover,
.ll-navbar .nav-link.active {
    color: var(--ll-glow) !important;
    text-shadow: 0 0 10px rgba(91, 243, 227, 0.4);
}

.ll-brand-text {
    font-size: 1.3rem;
    color: var(--ll-gold) !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* ===== Hero Section ===== */
.ll-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.ll-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--ll-gold);
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
    line-height: 1.2;
}

.ll-hero-subtitle {
    font-size: 1.25rem;
    color: var(--ll-text-muted);
    line-height: 1.8;
}

/* ===== Glow Text ===== */
.ll-glow {
    color: var(--ll-glow);
    text-shadow:
        0 0 10px rgba(91, 243, 227, 0.5),
        0 0 20px rgba(91, 243, 227, 0.3),
        0 0 40px rgba(91, 243, 227, 0.1);
}

.ll-glow-gold {
    color: var(--ll-gold);
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
}

/* ===== Buttons ===== */
.ll-btn-primary {
    background: linear-gradient(135deg, var(--ll-primary), #7B2FBE);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(94, 96, 206, 0.4);
}

.ll-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(94, 96, 206, 0.6);
    color: white;
}

.ll-btn-gold {
    background: linear-gradient(135deg, var(--ll-accent), var(--ll-gold));
    border: none;
    color: #1a1a2e;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Spectral', serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 174, 66, 0.4);
    position: relative;
    overflow: hidden;
}

.ll-btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ll-btn-gold:hover::before {
    left: 100%;
}

.ll-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 174, 66, 0.6);
    color: #1a1a2e;
}

/* ===== Cards ===== */
.ll-card {
    background: var(--ll-card-bg);
    border: 1px solid var(--ll-card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.ll-card:hover {
    transform: translateY(-4px);
    border-color: var(--ll-primary);
    box-shadow: 0 8px 32px rgba(94, 96, 206, 0.3);
}

.ll-card-icon {
    font-size: 2.5rem;
    color: var(--ll-glow);
    margin-bottom: 1rem;
}

.ll-card h5 {
    color: var(--ll-gold);
    font-family: 'Cinzel Decorative', serif;
}

/* ===== Sections ===== */
.ll-section {
    padding: 5rem 0;
    position: relative;
}

.ll-section-title {
    font-size: 2.2rem;
    color: var(--ll-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.ll-section-subtitle {
    color: var(--ll-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.ll-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--ll-glow), var(--ll-primary));
    border: none;
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

/* ===== Timeline (Levels) ===== */
.ll-timeline {
    position: relative;
    padding: 1rem 0;
}

.ll-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--ll-glow), var(--ll-primary), var(--ll-gold));
    transform: translateX(-50%);
}

.ll-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 50%;
}

.ll-timeline-item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
}

.ll-timeline-item:nth-child(even) {
    padding-left: 3rem;
    margin-left: 50%;
}

.ll-timeline-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--ll-glow);
    border-radius: 50%;
    top: 0.5rem;
    box-shadow: 0 0 12px rgba(91, 243, 227, 0.6);
}

.ll-timeline-item:nth-child(odd) .ll-timeline-node {
    right: -8px;
}

.ll-timeline-item:nth-child(even) .ll-timeline-node {
    left: -8px;
}

.ll-timeline-rank {
    font-family: 'Cinzel Decorative', serif;
    color: var(--ll-gold);
    font-size: 1.1rem;
}

/* ===== Accordion (FAQ) ===== */
.ll-accordion .accordion-item {
    background: var(--ll-card-bg);
    border: 1px solid var(--ll-card-border);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.ll-accordion .accordion-button {
    background: transparent;
    color: var(--ll-text);
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: none;
    padding: 1.25rem;
}

.ll-accordion .accordion-button:not(.collapsed) {
    background: rgba(94, 96, 206, 0.15);
    color: var(--ll-glow);
}

.ll-accordion .accordion-button::after {
    filter: invert(1);
}

.ll-accordion .accordion-body {
    color: var(--ll-text-muted);
    padding: 0 1.25rem 1.25rem;
}

/* ===== Screenshots Gallery ===== */
.ll-screenshot-card {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--ll-card-border);
    transition: all 0.3s;
    cursor: pointer;
    aspect-ratio: 9/16;
    background: var(--ll-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-screenshot-card:hover {
    border-color: var(--ll-glow);
    box-shadow: 0 0 20px rgba(91, 243, 227, 0.3);
    transform: scale(1.03);
}

.ll-screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ll-screenshot-placeholder {
    color: var(--ll-text-muted);
    font-size: 3rem;
}

/* ===== Press Kit ===== */
.ll-fact-table td,
.ll-fact-table th {
    padding: 0.75rem 1rem;
    border-color: var(--ll-card-border);
}

.ll-fact-table th {
    color: var(--ll-glow);
    font-family: 'Spectral', serif;
    font-weight: 600;
    width: 200px;
}

/* ===== Footer ===== */
.ll-footer {
    background: rgba(13, 27, 42, 0.95);
    border-top: 1px solid var(--ll-card-border);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.ll-footer-heading {
    font-family: 'Cinzel Decorative', serif;
    color: var(--ll-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Language Flags ===== */
.ll-flags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ll-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--ll-card-border);
    transition: all 0.3s;
}

.ll-flag:hover {
    border-color: var(--ll-glow);
    box-shadow: 0 0 10px rgba(91, 243, 227, 0.3);
    transform: scale(1.1);
}

/* ===== Language Dropdown ===== */
.ll-lang-dropdown {
    background: rgba(16, 12, 37, 0.95);
    border: 1px solid var(--ll-card-border);
    backdrop-filter: blur(12px);
    border-radius: 12px !important;
    padding: 0.5rem;
    min-width: 160px;
}

.ll-lang-dropdown .dropdown-item {
    color: var(--ll-text-muted);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.ll-lang-dropdown .dropdown-item:hover {
    background: rgba(94, 96, 206, 0.2);
    color: var(--ll-glow);
}

.ll-lang-dropdown .dropdown-item.active {
    background: rgba(94, 96, 206, 0.3);
    color: var(--ll-glow);
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(91, 243, 227, 0.3); }
    50% { box-shadow: 0 0 20px rgba(91, 243, 227, 0.6); }
}

.ll-float {
    animation: float 4s ease-in-out infinite;
}

.ll-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== Store Badges ===== */
.ll-store-badge {
    height: 50px;
    transition: all 0.3s;
    filter: brightness(0.9);
}

.ll-store-badge:hover {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .ll-hero-title {
        font-size: 2rem;
    }

    .ll-section-title {
        font-size: 1.6rem;
    }

    .ll-timeline::before {
        left: 1rem;
    }

    .ll-timeline-item,
    .ll-timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .ll-timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: 3rem;
        text-align: left;
    }

    .ll-timeline-item:nth-child(odd) .ll-timeline-node,
    .ll-timeline-item:nth-child(even) .ll-timeline-node {
        left: 4px;
        right: auto;
    }

    .ll-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }
}

/* ===== Page Header ===== */
.ll-page-header {
    padding-top: 120px;
    padding-bottom: 3rem;
    text-align: center;
}

/* ===== Legal Pages ===== */
.ll-legal {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.ll-legal h2 {
    font-size: 1.4rem;
    color: var(--ll-glow);
    margin-top: 2rem;
}

.ll-legal p {
    color: var(--ll-text-muted);
}
