@import url("base.css");
@import url("components.css");
@import url("dashboard.css");
@import url("map_vote_stats.css");
@import url("matches.css");
@import url("match-detail.css");
@import url("match-player-ranking.css");
@import url("match-player-team.css");
@import url("match-player.css");
@import url("navigations.css");
@import url("players.css");
@import url("servers.css");
@import url("chatlog.css");
@import url("totals.css");
@import url("maps.css");
@import url("rankings.css");
@import url("help.css");
@import url("layout.css");
@import url("admin.css");
@import url("weaponstats.css");

:root {
    --bg: #070b12;
    --bg-soft: #101826;
    --panel: rgba(18, 28, 43, 0.92);
    --panel-border: rgba(91, 169, 255, 0.22);
    --text: #e8f2ff;
    --muted: #8ea4bd;
    --blue: #3fa7ff;
    --orange: #ff9d2e;
    --green: #69ffb1;
    --danger: #ff4f6d;
}

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

html {
    min-width: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Verdana, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(63, 167, 255, 0.18), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(255, 157, 46, 0.14), transparent 28rem),
        linear-gradient(135deg, #05070c, #0a111d 45%, #05070c);
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

/* Layout */

.page-shell {
    width: min(1760px, calc(100% - 32px));
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    margin-top: 24px;
}

.page-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */

.site-header {
    position: relative;
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    overflow: visible;
    background:
        linear-gradient(
            180deg,
            rgba(8, 14, 24, 0.98),
            rgba(5, 9, 16, 0.98)
        );
    box-shadow: 0 0 35px rgba(63, 167, 255, 0.10);
}

.header-banner {
    height: 240px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.header-banner img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center;
    opacity: 0.9;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}
/* Common Panels */

.panel,
.stat-card {
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.panel {
    padding: 22px;
    min-height: 220px;
    min-width: 0;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 4px 0 0;
}

.panel-label,
.match-meta span,
.mini-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.ghost-button {
    color: var(--blue);
    text-decoration: none;
    border: 1px solid rgba(63, 167, 255, 0.28);
    background: rgba(63, 167, 255, 0.08);
    border-radius: 12px;
    padding: 9px 12px;
    transition: 160ms ease;
}

.ghost-button:hover {
    color: var(--text);
    background: rgba(63, 167, 255, 0.18);
}

/* Hero */

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(18, 28, 43, 0.95), rgba(9, 14, 24, 0.95));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin: 10px 0;
    font-size: 46px;
    line-height: 1;
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
}

.hero-badge {
    align-self: center;
    min-width: 180px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 157, 46, 0.35);
    background: rgba(255, 157, 46, 0.08);
    text-align: right;
}

.hero-badge span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.hero-badge strong {
    color: var(--orange);
    font-size: 18px;
}

/* Dashboard */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -45px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(63, 167, 255, 0.11);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    overflow-wrap: anywhere;
}

.stat-card.highlight {
    border-color: rgba(255, 157, 46, 0.38);
}

.stat-card.highlight::after {
    background: rgba(255, 157, 46, 0.16);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}


.combat-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.combat-stats div {
    min-width: 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.combat-stats strong {
    color: var(--green);
    font-size: 22px;
    overflow-wrap: anywhere;
}

.match-actions {
    display: flex;
    justify-content: flex-end;
}

.match-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    background: rgba(255, 157, 46, 0.12);
    border: 1px solid rgba(255, 157, 46, 0.20);
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    transition: 160ms ease;
}

.match-actions a:hover {
    background: rgba(255, 157, 46, 0.20);
    color: #fff;
}

.empty-state {
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
}





/* Error Page */

.error-page-card {
    display: flex;
    align-items: center;
    gap: 30px;

    padding: 40px;
    border-radius: 24px;

    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.error-page-icon {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 157, 46, 0.22),
            rgba(255, 80, 80, 0.18)
        );

    font-size: 42px;
}

.error-page-content {
    min-width: 0;
}

.error-page-content h1 {
    margin: 10px 0 14px;
    font-size: 38px;
}

.error-page-content p {
    color: var(--muted);
    line-height: 1.6;
}

.error-page-actions {
    margin-top: 24px;
}

.error-page-actions a {
    display: inline-flex;
    align-items: center;

    padding: 12px 18px;
    border-radius: 14px;

    text-decoration: none;

    background: rgba(63, 167, 255, 0.12);
    border: 1px solid rgba(63, 167, 255, 0.24);

    color: var(--blue);
    font-weight: 700;

    transition: 160ms ease;
}

.error-page-actions a:hover {
    background: rgba(63, 167, 255, 0.20);
    color: #fff;
}

/* Debug */

.nav-debug-badge {
    text-align: center;
    margin: 8px 0 0;
    color: rgba(105, 255, 177, 0.9);
    font-size: 12px;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-detail-meta,
    .match-detail-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .topbar,
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero h1 {
        font-size: 36px;
    }

    .match-meta,
    .mini-stats,
    .match-info-grid,
    .combat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .match-meta-grid,
    .combat-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-detail-hero {
        grid-template-columns: 1fr;
    }

    .match-detail-hero-image img {
        height: auto;
    }

    .match-detail-hero-content h1 {
        font-size: 34px;
    }

    .match-detail-server-grid {
        grid-template-columns: 1fr;
    }

    .section-header,
    .panel-head,
    .match-card-top,
    .match-detail-team-header,
    .error-page-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100%, calc(100% - 18px));
        padding: 12px 0 32px;
    }

    .header-banner,
    .header-banner img {
        height: 170px;
    }

    .main-nav-overlay {
        width: calc(100% - 18px);
        max-width: calc(100% - 18px);
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hero,
    .panel,
    .match-card,
    .match-detail-server-panel,
    .match-detail-graphs-panel,
    .match-player-weapons-panel,
    .error-page-card {
        padding: 16px;
    }

    .stats-grid,
    .match-meta,
    .mini-stats,
    .match-info-grid,
    .combat-strip,
    .match-meta-grid,
    .combat-stats,
    .match-detail-meta,
    .match-detail-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .section-header h1 {
        font-size: 28px;
    }

    .match-detail-hero-content h1 {
        font-size: 28px;
    }

    .match-detail-overview-card strong {
        font-size: 24px;
    }

    .match-detail-players-table {
        min-width: 720px;
    }

    .map-hover img {
        width: 260px;
        max-width: 85vw;
    }
}


.favorite-weapon-name {
    display: block;

    font-size: clamp(18px, 2vw, 24px) !important;

    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}



/*
Weapon Accuracy
*/
.match-player-accuracy-panel {
    padding: 24px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
}

.weapon-accuracy-value {
    color: var(--green);
    font-weight: 800;
}
/*
Pagination
*/
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-top: 36px;
}

.pagination-button {
    padding: 12px 18px;
    border-radius: 14px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);

    color: var(--text);
    text-decoration: none;
    font-weight: 700;

    transition: all 0.2s ease;
}

.pagination-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.16);
}

.pagination-info {
    color: var(--muted);
    font-weight: 700;
}
.pagination-top {
    margin-top: 0;
}


.footer-separator {
    margin: 0 8px;
    color: var(--muted);
}

.cookie-language-bar {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(20, 20, 24, 0.96);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}

.cookie-language-bar__content p {
    margin: 0.35rem 0 0;
}

.cookie-language-bar__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 0.9rem;
}

.language-switcher a {
    text-decoration: underline;
}