/* ============================================
   WORLD WAR: THE REVIVAL — Main Stylesheet
   ============================================ */

:root {
    --bg:          #08080a;
    --bg-2:        #0d0d10;
    --bg-3:        #111116;
    --text:        #e8e8e8;
    --text-muted:  #888;
    --gold:        #c9a84c;
    --gold-light:  #f0d080;
    --gold-dim:    rgba(201,168,76,0.15);
    --red:         #9b1c1c;
    --red-bright:  #d63031;
    --red-dim:     rgba(155,28,28,0.15);
    --border:      rgba(201,168,76,0.12);
    --border-hover:rgba(201,168,76,0.35);
    --radius:      6px;
    --font-head:   'Cinzel', serif;
    --font-body:   'Inter', sans-serif;
    --transition:  0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

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

/* ── NAVBAR ── */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: background var(--transition), padding var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}
.main-nav.scrolled {
    background: rgba(8,8,10,0.95);
    backdrop-filter: blur(16px);
    padding: 12px 0;
    border-color: var(--border);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: #fff;
}
.logo span { color: var(--gold); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-webclient {
    color: var(--gold) !important;
    border: 1px solid rgba(201,168,76,0.4);
    padding: 8px 18px;
    border-radius: var(--radius);
    background: rgba(201,168,76,0.06);
    transition: all var(--transition) !important;
    font-size: 0.78rem !important;
}
.nav-webclient:hover {
    background: rgba(201,168,76,0.15) !important;
    border-color: var(--gold) !important;
    color: var(--gold-light) !important;
}
.nav-whatsapp {
    color: #25D366 !important;
    border: 1px solid rgba(37,211,102,0.4);
    padding: 8px 18px;
    border-radius: var(--radius);
    background: rgba(37,211,102,0.06);
    transition: all var(--transition) !important;
    font-size: 0.78rem !important;
}
.nav-whatsapp:hover {
    background: rgba(37,211,102,0.15) !important;
    border-color: #25D366 !important;
}
.nav-cta {
    background: var(--red) !important;
    color: #fff !important;
    padding: 9px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--red-bright);
    transition: background var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
    background: var(--red-bright) !important;
    box-shadow: 0 0 20px rgba(214,48,49,0.4);
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(155,28,28,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 50% 80%, rgba(201,168,76,0.06) 0%, transparent 60%),
        url('assets/bg.png') center/cover no-repeat;
    filter: brightness(0.35);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,8,10,0.2) 0%, rgba(8,8,10,0.7) 70%, var(--bg) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 28px;
    background: rgba(201,168,76,0.05);
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}
.hero-title span {
    display: block;
    color: var(--red-bright);
    text-shadow: 0 0 40px rgba(214,48,49,0.5);
    font-size: 0.7em;
    letter-spacing: 8px;
    margin-top: 4px;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.btn-primary {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, #6b0f0f 100%);
    border: 1px solid var(--red-bright);
    padding: 14px 36px;
    border-radius: var(--radius);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(155,28,28,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
    box-shadow: 0 6px 30px rgba(214,48,49,0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 1px solid rgba(201,168,76,0.4);
    padding: 14px 36px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-secondary:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.hero-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 32px;
    gap: 8px;
}
.hstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}
.hstat-val {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hstat-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}
.hstat-sep {
    width: 1px;
    height: 30px;
    background: var(--border);
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── SECTION HEADERS ── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 12px auto 0;
    box-shadow: 0 0 8px var(--gold);
}
.section-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 16px;
}

/* ── WAR SECTION ── */
.war-section {
    padding: 100px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.war-board {
    margin-bottom: 48px;
}
#war-ranking {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.guild-rank-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 14px;
    transition: border-color var(--transition);
}
.guild-rank-card:hover { border-color: var(--border-hover); }
.guild-rank-card.loading {
    justify-content: center;
    color: var(--text-muted);
    padding: 16px;
    font-size: 0.8rem;
}
.gr-rank {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.guild-rank-card:nth-child(1) .gr-rank { color: var(--gold); }
.guild-rank-card:nth-child(2) .gr-rank { color: #c0c0c0; }
.guild-rank-card:nth-child(3) .gr-rank { color: #cd7f32; }
.gr-info {
    flex: 1;
}
.gr-name {
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 4px;
}
.gr-bar-wrap {
    height: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}
.gr-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}
.gr-kills {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    text-align: right;
    min-width: 55px;
}
.gr-kills small {
    font-size: 0.58rem;
    opacity: 0.5;
    margin-left: 2px;
}

/* Live grid */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.live-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color var(--transition);
}
.live-card:hover { border-color: var(--border-hover); }
.live-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.live-card-header h3 {
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.live-dot.online {
    background: #00b894;
    box-shadow: 0 0 6px #00b894;
    animation: pulse 2s ease-in-out infinite;
}
.live-dot.offline { background: var(--red); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 3px #00b894; }
    50% { box-shadow: 0 0 10px #00b894; }
}
.live-icon { font-size: 0.85rem; }
.status-value {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.status-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.frag-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
}
.frag-list li:last-child { border-bottom: none; }
.frag-list .rank {
    font-family: var(--font-head);
    font-size: 0.68rem;
    color: var(--text-muted);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.frag-list .pname { flex: 1; color: var(--text); font-weight: 500; }
.frag-list .pval { color: var(--gold); font-size: 0.75rem; flex-shrink: 0; }
.frag-list .loading-row,
.frag-list .empty { color: var(--text-muted); font-size: 0.78rem; justify-content: center; }

/* ── GUILDS SECTION ── */
.guilds-section {
    padding: 100px 0;
    background: var(--bg);
}
.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.guild-card {
    position: relative;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: default;
}
.guild-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--accent, rgba(201,168,76,0.2));
}
.guild-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transition: height var(--transition);
}
.guild-card:hover .guild-accent { height: 4px; }
.guild-body {
    padding: 24px;
}
.guild-name {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.guild-leader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.leader-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.leader-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.leader-level {
    font-size: 0.75rem;
    color: var(--gold);
    background: var(--gold-dim);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}
.guild-lore {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.guild-members {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* ── INFO SECTION ── */
.info-section {
    padding: 100px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.info-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    text-align: center;
}
.info-card:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
    transform: translateY(-3px);
}
.info-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.info-card h4 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.info-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.info-card strong { color: var(--text); }
.info-card--highlight {
    border-color: rgba(201,168,76,0.35);
    background: rgba(201,168,76,0.05);
}
.info-card--highlight small { color: var(--text-muted); font-size: 0.78rem; }

/* ── DOWNLOAD SECTION ── */
.download-section {
    padding: 100px 0;
    background: var(--bg);
}
.download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, rgba(155,28,28,0.12) 0%, rgba(201,168,76,0.06) 100%);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 12px;
    padding: 56px 64px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}
.download-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155,28,28,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.download-text h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.download-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.btn-download {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--red) 0%, #6b0f0f 100%);
    border: 1px solid var(--red-bright);
    border-radius: var(--radius);
    padding: 18px 32px;
    color: #fff;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(155,28,28,0.3);
    white-space: nowrap;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(214,48,49,0.5);
    background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
}
.dl-icon { font-size: 1.5rem; }
.btn-download strong {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.btn-download small {
    display: block;
    font-size: 0.72rem;
    opacity: 0.6;
    margin-top: 2px;
}

/* ── FOOTER ── */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.footer-brand .logo { font-size: 1.1rem; }
.footer-brand p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1px;
}
.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color var(--transition);
    letter-spacing: 1px;
}
.footer-links a:hover { color: var(--gold); }
.discord-link { color: #7289da !important; }
.discord-link:hover { color: #99aab5 !important; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 0.75rem;
    color: #444;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-stats-bar { flex-wrap: wrap; gap: 16px; border-radius: 12px; }
    .hstat-sep { display: none; }
    .hstat { padding: 0 12px; }
    .download-box { padding: 40px 28px; flex-direction: column; text-align: center; }
    .nav-links { gap: 16px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .hero-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .guild-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .live-grid { grid-template-columns: 1fr; }
}
