/* ============================================
   TOLARIS GT — Warhammer 40K Grand Tournament
   Dark & Epic Theme
   ============================================ */

:root {
    --bg-primary: #0d0d0f;
    --bg-secondary: #141418;
    --bg-card: #1a1a20;
    --bg-card-hover: #222230;
    --accent: #c8842a;
    --accent-light: #e6a84d;
    --accent-dark: #9a6520;
    --accent-glow: rgba(200, 132, 42, 0.3);
    --text-primary: #e8e4dc;
    --text-secondary: #9d978e;
    --text-muted: #6b665e;
    --border: rgba(200, 132, 42, 0.15);
    --border-strong: rgba(200, 132, 42, 0.35);
    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 70px;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 15, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.parallax {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(200, 132, 42, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 42, 42, 0.06) 0%, transparent 50%),
        url('theme://images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 15, 0.5) 0%,
        rgba(13, 13, 15, 0.3) 40%,
        rgba(13, 13, 15, 0.5) 70%,
        rgba(13, 13, 15, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-emblem {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px var(--accent-glow)); }
    50% { filter: drop-shadow(0 0 40px var(--accent-glow)) drop-shadow(0 0 80px rgba(200, 132, 42, 0.1)); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 60px rgba(200, 132, 42, 0.2);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 0.75rem;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 2rem auto;
}

.hero-date,
.hero-location {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.hero-date {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { top: 5px; opacity: 1; }
    50% { top: 14px; opacity: 0.3; }
}

/* ---- SECTIONS ---- */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-about {
    background: var(--bg-secondary);
}

.section-rules {
    background: var(--bg-primary);
}

.section-schedule {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1.2rem auto 0;
}

/* ---- CONTENT CARDS ---- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.content-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.content-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.8rem;
}

.content-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 1rem;
}

/* ---- PARALLAX BREAK ---- */
.parallax-break {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        url('theme://images/mid-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.parallax-bottom {
    min-height: 25vh;
    background-image: url('theme://images/hero-bg.png');
}

.parallax-quote {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.parallax-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--accent-light);
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* ---- RULES ---- */
.rules-content {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-item:hover {
    padding-left: 0.5rem;
}

.rule-number {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rule-item:hover .rule-number {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.rule-text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.rule-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- TIMELINE ---- */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--border), transparent);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.8rem;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-time {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    min-width: 70px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-primary);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-links a {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(200, 132, 42, 0.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ---- ANIMATIONS ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(13, 13, 15, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 2rem;
        text-align: center;
    }

    .hero-title {
        letter-spacing: 4px;
    }

    .section {
        padding: 4rem 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .parallax,
    .parallax-break {
        background-attachment: scroll;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-emblem {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .rule-item {
        gap: 1rem;
    }

    .rule-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ---- LANGUAGE SWITCHER ---- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-lang {
    margin-left: 0.5rem;
}

.lang-switch {
    display: inline-block;
    padding: 0.3rem 0.8rem !important;
    font-family: var(--font-display) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    color: var(--accent) !important;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent) !important;
}

.lang-switch::after {
    display: none !important;
}

/* ---- SOLD OUT BADGE ---- */
.sold-out-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 2rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 3px;
    animation: pulse-sold-out 2s ease-in-out infinite;
}

@keyframes pulse-sold-out {
    0%, 100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.2); }
    50% { box-shadow: 0 0 25px rgba(231, 76, 60, 0.4); }
}

/* ---- ORGANIZER NAMES ---- */
.organizer-names {
    font-weight: 500;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .nav-right {
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-links {
        top: 70px;
    }

    .nav-lang {
        margin-left: 0;
    }
}

/* ---- DISCORD SECTION ---- */
.section-discord {
    padding: 3rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.discord-content {
    max-width: 500px;
    margin: 0 auto;
}

.discord-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.discord-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.btn-discord {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    background: #5865F2;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    color: #fff;
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
}

.hero-bg {
    background:
        linear-gradient(180deg, rgba(13,13,15,0.4) 0%, rgba(13,13,15,0.2) 40%, rgba(13,13,15,0.6) 70%, rgba(13,13,15,1) 100%),
        radial-gradient(ellipse at 30% 50%, rgba(200,132,42,0.08) 0%, transparent 60%),
        url("../images/hero-bg.png");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.discord-bar {
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================
   DEFAULT TEMPLATE — RESPONSIVE OVERHAUL
   ============================================ */

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.4rem) !important;
        letter-spacing: 3px;
    }

    .hero-date {
        font-size: 1.1rem;
    }

    .hero-location {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .scroll-indicator {
        display: none;
    }

    .section-about {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .about-text {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .about-text p {
        margin-bottom: 0.8rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-col h3 {
        font-size: 0.8rem;
    }

    .footer-col p {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    .discord-bar {
        margin-bottom: 2rem;
    }

    .btn-discord {
        padding: 0.7rem 2rem;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .nav-brand-link {
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
    }

    .hero-emblem {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-divider {
        margin: 1.2rem auto;
    }

    .content-card {
        padding: 1.5rem 1.25rem;
    }

    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .content-card h3 {
        font-size: 0.9rem;
    }

    .content-card p {
        font-size: 0.85rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }
}
