:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(23, 31, 48, 0.75);
    --card-border: rgba(255, 170, 0, 0.15);
    --accent-orange: #ffaa00;
    --accent-copper: #e67e22;
    --online-green: #22c55e;
    --offline-red: #ef4444;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ozadni svetlobni učinek */
.background-glow {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.12) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.gear-icon {
    font-size: 38px;
    filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.5));
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffc857 0%, #ffaa00 50%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

header .subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 6px;
    font-weight: 500;
}

/* Tab Navigacija */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(255, 170, 0, 0.15);
    color: #fff;
    border-color: rgba(255, 170, 0, 0.3);
}

.tab-btn.active {
    background: var(--accent-orange);
    color: #000;
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Kartice & Glassmorphism */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    border-color: rgba(255, 170, 0, 0.35);
}

/* Status Banner */
.status-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 15px;
}

.status-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.badge.online {
    background: rgba(34, 197, 94, 0.15);
    color: var(--online-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge.online .dot {
    background: var(--online-green);
    box-shadow: 0 0 8px var(--online-green);
    animation: pulse 2s infinite;
}

.badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--offline-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge.offline .dot {
    background: var(--offline-red);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-number {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    font-family: 'Fira Code', monospace;
}

.hero-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin: 0;
}

.card-icon {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    margin: 4px 0 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: 'Fira Code', monospace;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-copper), var(--accent-orange));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Player List */
.players-card h2, #tab-mods h2 {
    margin-top: 0;
    font-size: 18px;
    color: var(--accent-orange);
}

.player-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.player-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px 6px 8px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.empty-players {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

/* Mods Grid */
.mods-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 20px;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.mod-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Fira Code', monospace;
    color: #ddd;
    word-break: break-all;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.refresh-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
    opacity: 0.7;
}

/* Prilagoditev za mobitele */
@media (max-width: 600px) {
    header h1 { font-size: 30px; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .hero-divider { width: 80%; height: 1px; }
}
