/* GamesVar – wygląd list i stron serwerów Minecraft (trawa, ziemia, kamień, szmaragdy) */

body.gv-mc {
    --mc-grass: #6bbf3b;
    --mc-grass-2: #4f9a28;
    --mc-dirt: #7a5233;
    --mc-dirt-2: #5b3c25;
    --mc-stone: #2a2f36;
    --mc-stone-2: #1d2127;
    --mc-line: rgba(255,255,255,.08);
    --mc-text: #e6ecdf;
    --mc-muted: #a6b39b;
    --mc-emerald: #2ee77a;
    --mc-diamond: #5fe3f0;
    --mc-gold: #f4c53b;
    --mc-red: #ff5b4f;
    --mc-pixel: "Pixelify Sans", "Montserrat", system-ui, sans-serif;
    background:
        linear-gradient(180deg, rgba(10,14,12,.2), rgba(10,14,12,.85)),
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.018) 31px 32px),
        repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.018) 31px 32px),
        radial-gradient(1000px 500px at 85% 10%, rgba(107,191,59,.14), transparent 70%),
        radial-gradient(800px 500px at 10% 60%, rgba(95,227,240,.07), transparent 70%),
        #12161a !important;
    background-attachment: fixed !important;
    color: var(--mc-text);
}

/* klocek: panel z „trawą” na górze i ziemią pod spodem */
html body.gv-mc .cs2-servers-container,
html body.gv-mc .server-container,
html body.gv-mc .server-description,
html body.gv-mc .chart-section,
html body.gv-mc .similar-servers-box,
html body.gv-mc .players-list,
html body.gv-mc .top-players-list,
html body.gv-mc .stats {
    position: relative;
    background: linear-gradient(180deg, rgba(42,47,54,.92), rgba(29,33,39,.94)) !important;
    border: 3px solid #0b0d0f !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), inset 0 -4px 0 rgba(0,0,0,.35), 0 14px 30px -18px rgba(0,0,0,.9) !important;
    color: var(--mc-text) !important;
}
html body.gv-mc .cs2-servers-container::before,
html body.gv-mc .server-description::before,
html body.gv-mc .chart-section::before,
html body.gv-mc .similar-servers-box::before {
    content: "";
    position: absolute; left: -3px; right: -3px; top: -3px; height: 9px;
    border-radius: 6px 6px 0 0;
    background:
        repeating-linear-gradient(90deg, var(--mc-grass) 0 8px, var(--mc-grass-2) 8px 12px, #7fd34a 12px 18px) top/100% 6px no-repeat,
        repeating-linear-gradient(90deg, var(--mc-dirt) 0 6px, var(--mc-dirt-2) 6px 10px) bottom/100% 3px no-repeat;
    pointer-events: none;
}
html body.gv-mc .cs2-servers-container { padding-top: 22px !important; }

html body.gv-mc h1,
html body.gv-mc h2,
html body.gv-mc .stat-titlen,
html body.gv-mc .cs2-servers-header h1 {
    font-family: var(--mc-pixel) !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    color: #fff !important;
    text-shadow: 2px 2px 0 rgba(0,0,0,.55);
    text-align: left !important;
    display: block !important;
}
html body.gv-mc h1 { font-size: 30px !important; }
html body.gv-mc h1::after {
    content: ""; display: block; width: 96px; height: 6px; margin-top: 10px;
    background: repeating-linear-gradient(90deg, var(--mc-grass) 0 12px, var(--mc-grass-2) 12px 18px);
    box-shadow: 0 3px 0 var(--mc-dirt);
}
html body.gv-mc h2 { font-size: 21px !important; }
html body.gv-mc a { color: var(--mc-diamond); }
html body.gv-mc a:hover { color: #b6f6fb; }

/* ---------- lista serwerów ---------- */
html body.gv-mc #servers_table { border-collapse: separate !important; border-spacing: 0 8px !important; background: transparent !important; }
html body.gv-mc #servers_table thead th {
    background: transparent !important;
    color: var(--mc-muted) !important;
    font: 700 12px/1 var(--mc-pixel) !important;
    text-transform: uppercase; letter-spacing: 1px;
    border: 0 !important;
}
html body.gv-mc #servers_table .modern-row td {
    background: rgba(22,26,31,.92) !important;
    border-top: 2px solid #0b0d0f !important;
    border-bottom: 3px solid #0b0d0f !important;
    color: var(--mc-text) !important;
}
html body.gv-mc #servers_table .modern-row td:first-child { border-left: 3px solid var(--mc-grass) !important; border-radius: 4px 0 0 4px; }
html body.gv-mc #servers_table .modern-row td:last-child { border-right: 2px solid #0b0d0f !important; border-radius: 0 4px 4px 0; }
html body.gv-mc #servers_table .modern-row:hover td { background: rgba(34,42,32,.95) !important; }
html body.gv-mc #servers_table .modern-row:hover td:first-child { border-left-color: var(--mc-emerald) !important; }

html body.gv-mc #servers_table .golden-row td { background: linear-gradient(90deg, rgba(244,197,59,.13), rgba(22,26,31,.92) 45%) !important; }
html body.gv-mc #servers_table .golden-row td:first-child { border-left-color: var(--mc-gold) !important; }

html body.gv-mc .server-name-link { color: #fff !important; font-weight: 700; }
html body.gv-mc .server-name-link:hover { color: var(--mc-emerald) !important; }
html body.gv-mc .game-icon { border-radius: 4px !important; image-rendering: pixelated; box-shadow: 0 0 0 2px #0b0d0f, 0 0 0 3px rgba(255,255,255,.08); }
html body.gv-mc .server-address-display, html body.gv-mc .ip-wrapper {
    background: #0e1114 !important;
    border: 2px solid #000 !important;
    border-radius: 3px !important;
    color: var(--mc-diamond) !important;
    font-family: ui-monospace, "JetBrains Mono", monospace !important;
    box-shadow: inset 0 2px 0 rgba(0,0,0,.6);
}
html body.gv-mc .tag-badge, html body.gv-mc .tag-more {
    background: rgba(107,191,59,.14) !important;
    color: #b7ee93 !important;
    border: 1px solid rgba(107,191,59,.45) !important;
    border-radius: 3px !important;
    font-weight: 700;
}
html body.gv-mc .players-text, html body.gv-mc .points-text { color: #fff !important; font-weight: 700; }
html body.gv-mc .players-fill { background: linear-gradient(90deg, var(--mc-grass-2), var(--mc-emerald)) !important; border-radius: 0 !important; }
html body.gv-mc .status-offline { color: var(--mc-red) !important; }
html body.gv-mc .status-online { color: var(--mc-emerald) !important; }

/* przyciski w stylu menu z gry */
html body.gv-mc .players-button,
html body.gv-mc .server-arrow-btn,
html body.gv-mc .mod-filter-btn,
html body.gv-mc .mods-toggle-btn,
html body.gv-mc .copy-btn,
html body.gv-mc .action-btn-card,
html body.gv-mc .pagination a,
html body.gv-mc .pagination span {
    background: linear-gradient(180deg, #8a8f95 0%, #6f747a 48%, #5d6166 52%, #4d5156 100%) !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 2px !important;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.25), inset -2px -2px 0 rgba(0,0,0,.35) !important;
    text-shadow: 1px 1px 0 #3a3a3a;
    font-family: var(--mc-pixel) !important;
    font-weight: 700 !important;
    transform: none !important;
}
html body.gv-mc .players-button:hover,
html body.gv-mc .server-arrow-btn:hover,
html body.gv-mc .mod-filter-btn:hover,
html body.gv-mc .mods-toggle-btn:hover,
html body.gv-mc .copy-btn:hover,
html body.gv-mc .action-btn-card:hover,
html body.gv-mc .pagination a:hover {
    background: linear-gradient(180deg, #8fb3f0 0%, #6f8fd0 48%, #5a78bb 52%, #4a66a6 100%) !important;
    color: #ffffa0 !important;
}
html body.gv-mc .mod-filter-btn.active,
html body.gv-mc .pagination .active,
html body.gv-mc .pagination span.current {
    background: linear-gradient(180deg, #7fd34a 0%, #5fae35 48%, #4f9a28 52%, #3f8020 100%) !important;
}
html body.gv-mc .btn-mc-connect,
html body.gv-mc .vote-button,
html body.gv-mc .vote-trigger {
    background: linear-gradient(180deg, #7fd34a 0%, #5fae35 48%, #4f9a28 52%, #3f8020 100%) !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 2px !important;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.3) !important;
    text-shadow: 1px 1px 0 #1f4010;
    font-family: var(--mc-pixel) !important;
    font-weight: 700 !important;
}
html body.gv-mc .vote-button, html body.gv-mc .vote-trigger {
    background: linear-gradient(180deg, #ffe27a 0%, #f4c53b 48%, #e0a91f 52%, #c48a10 100%) !important;
    color: #2a1a00 !important;
    text-shadow: none;
}

/* pola wyszukiwania i wyboru wersji */
html body.gv-mc .search-bar-styled,
html body.gv-mc .version-select-styled,
html body.gv-mc select,
html body.gv-mc input[type="text"],
html body.gv-mc input[type="search"] {
    background: #0b0d0f !important;
    color: #fff !important;
    border: 2px solid #5a5f65 !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 0 1px #000 !important;
}
html body.gv-mc .search-bar-styled:focus,
html body.gv-mc select:focus,
html body.gv-mc input:focus { border-color: #fff !important; outline: none; }

/* panel trybów */
html body.gv-mc .mods-filter-container { background: transparent !important; border: 0 !important; }
html body.gv-mc .mod-count { background: rgba(0,0,0,.4) !important; color: var(--mc-gold) !important; border-radius: 2px !important; }
html body.gv-mc .popover-modal { background: #1d2127 !important; border: 3px solid #000 !important; border-radius: 4px !important; }

/* ---------- strona serwera ---------- */
html body.gv-mc .server-container { padding: 22px !important; }
html body.gv-mc .server-container.golden { border-color: #7a5a00 !important; box-shadow: inset 0 0 0 2px rgba(244,197,59,.4), 0 0 30px -10px rgba(244,197,59,.5) !important; }
html body.gv-mc .server-info .info-item,
html body.gv-mc .server-info > div {
    background: rgba(14,17,20,.75) !important;
    border: 2px solid #0b0d0f !important;
    border-radius: 3px !important;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.04) !important;
}
html body.gv-mc .server-full-name { font-family: var(--mc-pixel) !important; color: #fff !important; overflow-wrap: anywhere; }
html body.gv-mc .players-table th { background: #0e1114 !important; color: var(--mc-muted) !important; font-family: var(--mc-pixel); border-bottom: 2px solid #000 !important; }
html body.gv-mc .players-table td { background: transparent !important; border-bottom: 1px solid var(--mc-line) !important; color: var(--mc-text) !important; }
html body.gv-mc .players-table tr:nth-child(even) td { background: rgba(255,255,255,.02) !important; }
html body.gv-mc .similar-item { background: rgba(14,17,20,.75) !important; border: 2px solid #0b0d0f !important; border-radius: 3px !important; }
html body.gv-mc .similar-item:hover { border-color: var(--mc-grass) !important; }
html body.gv-mc .similar-player-count { color: var(--mc-emerald) !important; }
html body.gv-mc .similar-ip { color: var(--mc-diamond) !important; }
html body.gv-mc .chart-container { background: #0e1114 !important; border: 2px solid #000 !important; border-radius: 3px !important; }
html body.gv-mc .toggle-arrow::before { border-color: var(--mc-grass) !important; }
html body.gv-mc .copied-notification, html body.gv-mc .copy-tooltip { background: #1d2127 !important; border: 2px solid var(--mc-grass) !important; color: #fff !important; border-radius: 2px !important; }

/* pasek gier nad listą: zielony akcent zamiast złotego na stronach Minecrafta */
html body.gv-mc .listvarx-link.active,
html body.gv-mc .listvarx-item.active > .listvarx-link {
    background: linear-gradient(180deg, #7fd34a 0%, #5fae35 48%, #4f9a28 52%, #3f8020 100%) !important;
    color: #fff !important;
    border-color: #000 !important;
    border-radius: 3px !important;
    text-shadow: 1px 1px 0 #1f4010;
}
html body.gv-mc .listvarx-link.active::before { background: #fff; }
html body.gv-mc .headerxvar::after { background: repeating-linear-gradient(90deg, var(--mc-grass) 0 8px, var(--mc-grass-2) 8px 12px); height: 3px; }

/* tekst SEO pod listą */
html body.gv-mc .gv-seo-game { color: var(--mc-text) !important; }
html body.gv-mc .gv-seo-game h2, html body.gv-mc .gv-seo-game h3 { font-family: var(--mc-pixel) !important; color: #b7ee93 !important; }

@media (max-width: 767px) {
    html body.gv-mc h1 { font-size: 23px !important; }
    html body.gv-mc .cs2-servers-container, html body.gv-mc .server-container { padding: 16px 12px !important; }
    html body.gv-mc { overflow-x: hidden; }
    html body.gv-mc .server-name-link, html body.gv-mc .server-full-name, html body.gv-mc h1, html body.gv-mc h2 { overflow-wrap: anywhere; word-break: break-word; }
}

html body.gv-mc #servers_table thead, html body.gv-mc #servers_table thead tr { background: transparent !important; box-shadow: none !important; }
html body.gv-mc #servers_table thead th { background: #0b0d0f !important; color: #b7ee93 !important; border-bottom: 3px solid var(--mc-grass-2) !important; }
html body.gv-mc #servers_table .golden-row td { background: rgba(58,48,18,.92) !important; }
html body.gv-mc #servers_table .golden-row:hover td { background: rgba(72,58,20,.95) !important; }
