@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap');

:root {
    --bg: #1A0A2E;
    --card-bg: #2D1B4E;
    --primary: #9D4EDD;
    --accent: #00FF41;
    --glow: #FF00FF;
    --white: #E0D0F0;
    --gray: #8870A8;
    --border: #3D2B5E;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border: 2px solid var(--bg); }

/* ========== Rune Border Pattern ========== */
.rune-border {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary) 0px, var(--primary) 8px,
        transparent 8px, transparent 12px,
        var(--primary) 12px, var(--primary) 18px,
        transparent 18px, transparent 24px
    );
}

/* ========== Nav ========== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch { display: flex; gap: 2px; }

.lang-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--gray);
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.lang-btn:hover:not(.active) {
    color: var(--white);
    border-color: var(--primary);
}

.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 32px;
    background: rgba(26, 10, 46, 0.95);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 4px 8px;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.nav-links .lang-switch {
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 1px solid var(--primary);
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--white);
    display: block;
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(157, 78, 221, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 0, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 48.5%, var(--border) 48.5%, var(--border) 49.5%, transparent 49.5%),
        linear-gradient(225deg, transparent 48.5%, var(--border) 48.5%, var(--border) 49.5%, transparent 49.5%);
    background-size: 60px 60px;
    opacity: 0.08;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-logo {
    width: 110px;
    height: 110px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.3), 0 0 80px rgba(157, 78, 221, 0.1);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    letter-spacing: 2px;
}

.hero h1 .highlight {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.hero .tagline {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero .subtitle {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 32px;
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    transform: translateY(-2px);
}

.btn-donate {
    background: linear-gradient(135deg, var(--primary), var(--glow));
    color: var(--white);
    border-color: var(--glow);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.15);
}

.btn-donate:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
    transform: translateY(-2px);
}

/* ========== Sections ========== */
.section {
    padding: 70px 20px;
    border-top: 1px solid var(--border);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
    letter-spacing: 1px;
}

.section-title p {
    color: var(--gray);
    font-size: 13px;
}

.twitch-section {
    background: var(--card-bg);
}

.twitch-embed {
    max-width: 650px;
    margin: 0 auto;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.1);
    aspect-ratio: 16/9;
    position: relative;
}

.twitch-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.twitch-status {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #555;
}

.status-dot.live {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.status-text.live { color: var(--accent); }
.status-text.offline { color: var(--gray); }

/* ========== YouTube ========== */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.1);
    transform: translateY(-3px);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    cursor: pointer;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bg);
    border: 2px solid var(--accent);
}

.video-thumb iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-info { padding: 12px; }
.video-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.video-info .video-date { font-size: 11px; color: var(--gray); }

/* ========== Schedule ========== */
.schedule-grid { max-width: 650px; margin: 0 auto; }

.schedule-day {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 18px 22px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.schedule-day:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.08);
}

.schedule-day .day { font-size: 14px; font-weight: 600; text-transform: uppercase; }
.schedule-day .time { color: var(--accent); font-weight: 600; }
.schedule-day .game { color: var(--gray); font-size: 12px; }
.schedule-day .status-badge { padding: 3px 10px; font-size: 11px; border: 1px solid; }

.status-badge.active { background: rgba(0, 255, 65, 0.1); color: var(--accent); border-color: var(--accent); }
.status-badge.upcoming { background: rgba(157, 78, 221, 0.1); color: var(--primary); border-color: var(--primary); }

/* ========== About ========== */
.about-section { background: var(--card-bg); }
.about-content { max-width: 650px; margin: 0 auto; text-align: center; }
.about-content p { color: var(--gray); font-size: 14px; margin-bottom: 16px; }
.about-content strong { color: var(--primary); }

/* ========== Social Links ========== */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
}

.social-link.twitch:hover { border-color: #9146ff; background: rgba(145, 70, 255, 0.15); }
.social-link.youtube:hover { border-color: #ff0000; background: rgba(255, 0, 0, 0.15); }
.social-link.instagram:hover { border-color: #e4405f; background: rgba(228, 64, 95, 0.15); }
.social-link.tiktok:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.social-link.x:hover { border-color: #000; background: rgba(0, 0, 0, 0.1); }

.social-link svg { width: 18px; height: 18px; }

/* ========== Footer ========== */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid var(--border);
    color: var(--gray);
    font-size: 12px;
}

footer a { color: var(--gray); text-decoration: none; }
footer a:hover { color: var(--primary); }

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ========== Mobile ========== */
@media (max-width: 768px) {
    .top-nav { padding: 12px 16px; }

    .nav-links {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background: rgba(26, 10, 46, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 14px;
        border-bottom: 2px solid var(--border);
    }

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

    .nav-links .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid var(--border);
    }

    .hero { padding: 100px 16px 40px; }
    .hero-logo { width: 80px; height: 80px; }
    .section { padding: 50px 16px; }

    .schedule-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
