/* WoW Ukraine — WoW Epic Stage 1 (shared, no Tailwind) */

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

:root {
    --bg-dark: #0b0e14;
    --bg-card: #131722;
    --wow-gold: #f8b700;
    --wow-gold-hover: #d4a373;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #242b3d;
    --success-green: #10b981;
}

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

html { scroll-behavior: smooth; }

body.wow-public {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

body.wow-public.has-bg-image {
    background-image:
        linear-gradient(180deg, rgba(11, 14, 20, 0.92), rgba(11, 14, 20, 0.95)),
        var(--wow-bg-image, none);
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--wow-gold);
    letter-spacing: 1px;
}

a { color: var(--wow-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wow-gold-hover); }

.wow-main { display: flex; flex-direction: column; min-height: calc(100vh - 72px); }

/* ── Header (sticky) ── */
.wow-header {
    position: sticky;
    top: 0;
    background-color: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wow-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--wow-gold);
    font-family: 'Cinzel', serif;
}

.wow-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.wow-nav a:hover,
.wow-nav a.active { color: var(--wow-gold); }

.wow-nav a.btn-team {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.wow-header__menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
}

@media (max-width: 768px) {
    .wow-nav { display: none; }
    .wow-header__menu-btn { display: flex; align-items: center; justify-content: center; }
    .wow-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    .wow-nav.is-open a { display: block; margin: 0.5rem 0; margin-left: 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow { max-width: 800px; }

/* ── Home ── */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(24, 32, 48, 0.4) 0%, rgba(11, 14, 20, 1) 70%);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.btn-cta {
    display: inline-block;
    background-color: var(--wow-gold);
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(248, 183, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-cta:hover {
    background-color: var(--wow-gold-hover);
    transform: translateY(-2px);
    color: #000;
}

.progress-section { padding: 4rem 0; }

.progress-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 6px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
    font-weight: 600;
}

.progress-bar-wrapper {
    background-color: #1e2538;
    border-radius: 4px;
    height: 12px;
    width: 100%;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #d4a373, var(--wow-gold));
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-val {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Download ── */
.download-wrapper {
    padding: 6rem 0 4rem;
    text-align: center;
}

.download-wrapper h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-wrapper > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.main-download-card {
    background-color: var(--bg-card);
    border: 1px solid var(--wow-gold);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(248, 183, 0, 0.05);
    margin-bottom: 2rem;
}

.version-badge {
    display: inline-block;
    background: rgba(248, 183, 0, 0.1);
    color: var(--wow-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download {
    display: inline-block;
    background-color: var(--wow-gold);
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(248, 183, 0, 0.2);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.btn-download:hover {
    background-color: var(--wow-gold-hover);
    transform: translateY(-2px);
    color: #000;
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.meta-info strong { color: var(--text-light); }

.changelog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 6px;
    text-align: left;
}

.changelog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.changelog-list {
    list-style-position: inside;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.changelog-list li { margin-bottom: 0.5rem; }

/* ── Install ── */
.guide-wrapper {
    padding: 6rem 0 4rem;
}

.guide-wrapper h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.guide-wrapper > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background-color: rgba(248, 183, 0, 0.1);
    color: var(--wow-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 800;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(248, 183, 0, 0.2);
    flex-shrink: 0;
}

.step-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.975rem;
}

.step-content code {
    background-color: #1e2538;
    color: #f87171;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.important-note {
    margin-top: 3rem;
    background: linear-gradient(90deg, rgba(248, 183, 0, 0.05) 0%, rgba(11, 14, 20, 0) 100%);
    border-left: 4px solid var(--wow-gold);
    padding: 1.5rem;
    border-radius: 0 6px 6px 0;
}

.important-note h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0;
}

.important-note p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Footer ── */
.wow-footer {
    text-align: center;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
}

.wow-footer a { color: var(--text-muted); }
.wow-footer a:hover { color: var(--wow-gold); }

/* ── Site auth / admin ── */
.site-auth, .site-admin {
    padding: 4rem 0;
}

.site-auth h1, .site-admin h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.site-auth__lead, .site-admin__sub {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.site-auth__hint {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.site-admin__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.site-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.site-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.site-panel__hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.site-form { display: grid; gap: 1rem; }

.site-form--grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.site-label span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.site-input, .site-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: #0f1219;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
}

.site-input:focus, .site-textarea:focus {
    outline: none;
    border-color: var(--wow-gold);
    box-shadow: 0 0 0 2px rgba(248, 183, 0, 0.15);
}

.site-form__actions { grid-column: 1 / -1; }

.site-form__submit { width: 100%; border: none; cursor: pointer; }

.site-alert {
    padding: 0.85rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.site-alert--ok {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.site-alert--error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.site-release-list {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-release-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-release-list li:last-child { border-bottom: none; }

.site-release-list strong { color: var(--wow-gold); }
