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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.5;
}

/* === Container === */
.container {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 20px;
}

/* === Cards === */
.card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* === Header === */
header { text-align: center; margin-bottom: 32px; }
header h1 {
    color: #ffcc00;
    font-size: 1.8rem;
    margin-bottom: 8px;
}
header nav a {
    color: #66ccff;
    text-decoration: none;
    font-weight: 600;
}
header nav a:hover { text-decoration: underline; }

/* === Section headings === */
.card h2, section h2 {
    color: #ffcc00;
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

/* === Game info banner === */
.game-banner {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.game-banner .card {
    flex: 1;
    text-align: center;
}
.game-banner h2 {
    font-size: 1rem;
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}
.game-banner .game-value {
    color: #4CAF50;
    font-size: 1.1rem;
    font-weight: 700;
}

/* === Tables === */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.stats-table th {
    background: #2a2a2a;
    color: #ccc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .05em;
    padding: 10px 12px;
    text-align: center;
    border-bottom: 2px solid #333;
}
.stats-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #252525;
    color: #bbb;
}
.stats-table tbody tr:hover { background: #262626; }
.stats-table tbody tr:nth-child(even) { background: #1a1a1a; }
.stats-table tbody tr:nth-child(even):hover { background: #262626; }

/* === Links === */
a { color: #66ccff; text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* === Select / dropdown === */
.styled-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
}
.styled-select:hover { border-color: #666; }
.styled-select:focus { outline: none; border-color: #ffcc00; }

.select-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.select-row .card {
    flex: 1;
    margin-bottom: 0;
}

/* === Hit zone silhouette === */
.hit-zone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}
.hit-zone-wrapper .weapon-dropdown {
    margin-bottom: 16px;
    min-width: 200px;
}
.silhouette-container {
    position: relative;
    width: 200px;
    height: 420px;
}
.silhouette-container svg { width: 100%; height: 100%; }
.zone-label {
    font-size: 11px;
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
    pointer-events: none;
}
.zone-pct {
    font-size: 13px;
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
    pointer-events: none;
}
.hit-total {
    margin-top: 12px;
    color: #888;
    font-size: .9rem;
}

/* === Server status === */
.server-status { padding: 14px 24px; margin-bottom: 16px; }
.server-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.online { background: #4CAF50; box-shadow: 0 0 6px #4CAF50; }
.status-dot.offline { background: #f44336; box-shadow: 0 0 6px #f44336; }
.server-meta { color: #888; font-size: .85rem; }
.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: #2a2a2a;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* === Stat highlight === */
.stat-highlight { text-align: center; }
.stat-highlight h2 { border-bottom: none; margin-bottom: 4px; padding-bottom: 0; }
.stat-highlight .game-value { font-size: 2rem; }

/* === Back link === */
.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 8px;
    transition: background .15s;
}
.back-link:hover { background: #2a2a2a; text-decoration: none; }

/* === Voting === */
.vote-grid {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}
.vote-card {
    flex: 1;
    background: #252525;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: border-color .2s;
}
.vote-card.voted {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76,175,80,.3);
}
.vote-card-title {
    color: #ffcc00;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}
.vote-bar-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 6px;
    height: 28px;
    margin-bottom: 12px;
    overflow: hidden;
}
.vote-bar {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #4CAF50);
    border-radius: 6px;
    transition: width .4s ease;
}
.vote-bar-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.btn-vote {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #2196F3;
    color: #fff;
    transition: opacity .15s;
}
.btn-vote:hover:not(.disabled) { opacity: .85; }
.btn-vote.disabled {
    background: #555;
    cursor: default;
    opacity: .6;
}
.vote-result {
    text-align: center;
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px;
}
.meta { color: #888; font-size: .85rem; margin-bottom: 8px; }

/* === Responsive === */
@media (max-width: 768px) {
    .game-banner { flex-direction: column; }
    .select-row { flex-direction: column; }
    .stats-table th, .stats-table td { font-size: .8rem; padding: 8px; }
    header h1 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 10px; margin: 16px auto; }
    .stats-table th, .stats-table td { font-size: .7rem; padding: 6px; }
    .silhouette-container { width: 160px; height: 340px; }
}
