
:root {
    --blue: #1699ea;
    --blue-soft: #66c6ff;
    --panel: rgba(7, 11, 14, .90);
    --panel-2: rgba(14, 19, 23, .93);
    --line: rgba(122, 160, 181, .34);
    --text: #eef6fa;
    --muted: #99a8b1;
    --gold: #ffc107;
    --silver: #b9c6ce;
    --bronze: #b87333;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background-color: #090c0f;

    /* Dve internetové pozadia. Ak prvé zlyhá, druhé ostane ako záloha. */
    background-image:
        linear-gradient(rgba(3, 6, 8, .42), rgba(3, 6, 8, .76)),
        url("https://www.csgowallpapers.com/assets/images/original_compressed/mossawi_952129253651_20160324133209_110435023903.png"),
        url("https://i.imgur.com/csFmkgl.jpg");

    background-size: cover, cover, cover;
    background-position: center top, center top, center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 18%, transparent 0, rgba(0,0,0,.10) 42%, rgba(0,0,0,.62) 100%),
        linear-gradient(to bottom, transparent 48%, rgba(0,0,0,.62) 100%);
}

.navbar {
    min-height: 60px;
    padding: 0;
    background: rgba(4, 8, 10, .95) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.40);
    backdrop-filter: blur(10px);
}

.navbar .container,
main.container,
.gg-footer .container {
    max-width: 1380px;
}

.gg-brand {
    font-size: 1.22rem;
    font-weight: 900 !important;
    letter-spacing: -.035em;
    color: #fff !important;
}

.gg-brand span {
    color: var(--blue);
}

.navbar .nav-link {
    min-height: 60px;
    display: flex;
    align-items: center;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    color: #d8e0e4 !important;
    font-size: .84rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--blue) !important;
    border-bottom-color: var(--blue);
}

main.container {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
}

.hero-intro,
.server-status-card,
.card {
    background: linear-gradient(145deg, rgba(8,12,15,.92), rgba(12,17,21,.89));
    border: 1px solid var(--line);
    border-radius: .55rem;
    box-shadow: 0 15px 38px rgba(0,0,0,.34);
    backdrop-filter: blur(8px);
}

.hero-intro {
    padding: 1.35rem 1.5rem;
}

.hero-kicker {
    color: #d8edf9;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: .45rem;
}

.hero-intro h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    text-shadow: 0 2px 10px rgba(0,0,0,.65);
}

.gg-search {
    margin-top: 1.15rem;
}

.gg-search .form-control {
    height: 48px;
    background: rgba(4,7,9,.94);
    color: #fff;
    border-color: #34444e;
}

.gg-search .form-control::placeholder {
    color: #89969e;
}

.gg-search .form-control:focus {
    background: rgba(4,7,9,.98);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem rgba(22,153,234,.16);
}

.btn-primary {
    background: linear-gradient(#1e98e6, #0f67ad);
    border-color: #249ce7;
    font-weight: 800;
}

.server-status-card {
    position: relative;
    overflow: hidden;
}

.server-status-card::after {
    content: "♟";
    position: absolute;
    right: 24px;
    top: 13px;
    font-size: 5.5rem;
    line-height: 1;
    opacity: .055;
    transform: rotate(10deg);
}

.server-status-overlay {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.5rem;
}

.server-name {
    font-size: 1.05rem;
}

.server-mini-stat {
    min-width: 94px;
    padding: .6rem .75rem;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,.18);
}

.server-mini-stat:first-child {
    border-left: 0;
}

.server-mini-stat .small {
    color: #93a3ad !important;
}

.top-three-row {
    align-items: end;
    justify-content: center;
    margin-top: .55rem;
}

.top-three-row > .podium-place-1 {
    order: 2;
}

.top-three-row > .podium-place-2 {
    order: 1;
}

.top-three-row > .podium-place-3 {
    order: 3;
}

.top-three-row .card {
    min-height: 245px;
    background:
        linear-gradient(160deg, rgba(11,15,18,.96), rgba(5,8,10,.94));
}

.top-three-row .podium-place-1 .card {
    min-height: 280px;
    transform: translateY(-10px);
    box-shadow:
        0 0 26px rgba(255,193,7,.17),
        0 18px 42px rgba(0,0,0,.40);
}

.top-three-row .podium-place-1 .card::before {
    content: "★";
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 2.7rem;
    color: rgba(255,193,7,.16);
}

.top-three-row .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-three-row .fs-4 {
    font-size: 1.45rem !important;
}

.top-three-row .border.rounded {
    background: rgba(0,0,0,.24);
    border-color: rgba(134,163,180,.43) !important;
}

.ranking-card {
    overflow: hidden;
}

.card-header {
    background: rgba(13,18,22,.93);
    border-bottom: 1px solid var(--line);
    color: #fff;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #eaf1f5;
    --bs-table-border-color: rgba(135,160,175,.20);
    margin-bottom: 0;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(22,153,234,.09);
    --bs-table-border-color: rgba(135,160,175,.20);
}

.table thead th {
    padding-top: .9rem;
    padding-bottom: .9rem;
    color: #a7d7f4;
    font-size: .77rem;
    text-transform: uppercase;
    letter-spacing: .035em;
    white-space: nowrap;
    background: rgba(7,11,14,.55);
    border-bottom-color: rgba(22,153,234,.28);
}

.table tbody td {
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.rank-number {
    color: #c7d4dc;
    font-weight: 700;
}

.player-link {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.player-link:hover {
    color: #76ccff;
}

code,
.points-value {
    color: #6fc8ff !important;
}

.records-side-card {
    overflow: hidden;
}

.records-side-card .card-header {
    font-size: .82rem;
}

.record-row {
    background: rgba(7,11,14,.88) !important;
    color: #edf5f8 !important;
    border-color: rgba(135,160,175,.18) !important;
    padding: .75rem .8rem;
}

.record-row:hover {
    background: rgba(22,153,234,.10) !important;
}

.record-code {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .35rem;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.record-code.text-bg-warning {
    background: #9b2e22 !important;
}

.record-code.text-bg-primary {
    background: #156ba0 !important;
}

.record-code.text-bg-success {
    background: #147942 !important;
}

.record-type {
    font-size: .77rem;
    color: #cdd7dd;
    white-space: nowrap;
}

.record-player {
    margin-top: .1rem;
    font-size: .82rem;
    font-weight: 800;
}

.record-score {
    color: #ff4c3d;
    font-size: 1rem;
    font-weight: 900;
}

.record-date {
    color: #8998a1;
    font-size: .64rem;
    white-space: nowrap;
}

.text-secondary,
.text-light-emphasis {
    color: var(--muted) !important;
}

.page-link {
    background: rgba(5,9,12,.92);
    border-color: #34444d;
    color: #aebbc3;
}

.page-link:hover,
.active > .page-link {
    color: #fff;
    background: #1479bd;
    border-color: #249be5;
}

.gg-footer {
    padding: 1.25rem 0;
    color: #a5b1b8;
    background: rgba(3,6,8,.90);
    border-top: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
}

@media (max-width: 1199.98px) {
    .records-side-card {
        margin-top: .5rem;
    }
}

@media (max-width: 767.98px) {
    body {
        background-attachment: scroll;
    }

    .top-three-row > .podium-place-1,
    .top-three-row > .podium-place-2,
    .top-three-row > .podium-place-3 {
        order: initial;
    }

    .top-three-row .podium-place-1 .card {
        transform: none;
        min-height: 245px;
    }

    .server-mini-stat {
        border-left: 0;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: .4rem;
        min-width: calc(50% - .5rem);
        flex: 1 1 auto;
    }
}


/* ==========================================================================
   KOMPAKTNÝ SERVER STATUS
   ========================================================================== */

.hero-intro {
    padding: 1.1rem 1.35rem;
}

.compact-search {
    width: min(100%, 480px);
    margin-top: 0;
}

.server-status-compact {
    padding: .7rem 1rem;
    background: linear-gradient(145deg, rgba(7,11,14,.94), rgba(11,16,20,.91));
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
}

.server-status-compact .badge {
    font-size: .68rem;
}

.server-compact-name {
    color: #d9e4ea;
    font-size: .88rem;
    font-weight: 700;
}

.server-status-compact code {
    font-size: .78rem;
}

.server-compact-stats {
    display: flex;
    align-items: center;
}

.server-compact-stats > span {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    padding: 0 .9rem;
    border-left: 1px solid rgba(255,255,255,.14);
}

.server-compact-stats > span:first-child {
    border-left: 0;
}

.server-compact-stats small {
    color: #8999a3;
    font-size: .69rem;
}

.server-compact-stats strong {
    color: #fff;
    font-size: .84rem;
}

@media (max-width: 767.98px) {
    .compact-search {
        width: 100%;
    }

    .server-compact-stats {
        width: 100%;
        justify-content: space-between;
    }

    .server-compact-stats > span {
        flex: 1 1 auto;
        justify-content: center;
        padding: .25rem .5rem;
    }
}


/* ==========================================================================
   SERVER STATUS - TABUĽKA
   ========================================================================== */

.server-status-table-wrap {
    overflow-x: auto;
    background: linear-gradient(145deg, rgba(7,11,14,.95), rgba(11,16,20,.92));
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
}

.server-status-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    color: #eef6fa;
    font-size: .82rem;
}

.server-status-table th,
.server-status-table td {
    padding: .72rem .8rem;
    border-right: 1px solid rgba(255,255,255,.10);
    vertical-align: middle;
}

.server-status-table th {
    color: #8fa1ac;
    background: rgba(255,255,255,.025);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.server-status-table td {
    font-weight: 600;
}

.server-status-table th:last-of-type,
.server-status-table td:last-child {
    border-right: 0;
}

.server-status-table .badge {
    font-size: .65rem;
    vertical-align: middle;
}

.server-status-table code {
    font-size: .76rem;
}

@media (max-width: 991.98px) {
    .server-status-table th,
    .server-status-table td {
        padding: .65rem .7rem;
    }
}


/* ==========================================================================
   SERVER STATUS - ROVNAKÝ ŠTÝL HLAVIČKY AKO RANKING
   ========================================================================== */

.server-status-card-table {
    overflow: hidden;
}

.server-status-card-table .card-header {
    min-height: 45px;
    padding: .75rem 1rem;
    background: rgba(13,18,22,.96);
    border-bottom: 1px solid var(--line);
}

.server-info-table thead th {
    background: rgba(7,11,14,.68);
}

.server-info-table tbody td {
    background: rgba(7,11,14,.38);
}
