/* ============================================================
   SERVER_STATUS.CSS — Stili per il box stato server Minecraft
   ============================================================ */

/* ── Box principale ───────────────────────────────────────── */
.server-status-box {
    margin:        20px 0;
    padding:       20px;
    border:        1px solid #495057;
    border-radius: 12px;
    background:    linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow:    0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ── Header (titolo + dot + timestamp) ────────────────────── */
.server-status-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   15px;
}

.server-status-title {
    display:     flex;
    align-items: center;
}

.server-status-title h3 {
    margin:      0;
    font-size:   18px;
    color:       #ecf0f1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.status-indicator {
    margin-left: 15px;
    display:     flex;
    align-items: center;
}

.status-dot {
    width:        14px;
    height:       14px;
    border-radius: 50%;
    margin-right: 8px;
    background:   #6c757d;
    border:       2px solid #fff;
}

.status-text {
    color:       #bdc3c7;
    font-weight: 600;
}

.last-update {
    font-size:  12px;
    color:      #95a5a6;
    text-align: right;
}

.timestamp {
    color:       #ecf0f1;
    font-weight: 500;
}


/* ── Card griglia ─────────────────────────────────────────── */
.status-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap:                   12px;
    margin-bottom:         15px;
}

.status-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.status-card {
    padding:       12px;
    background:    linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 8px;
    font-size:     14px;
    border:        1px solid #5d6d7e;
    box-shadow:    inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-card strong { display: inline; }
.status-card span   { color: #ecf0f1; }
.status-card small  { color: #95a5a6; }
.status-card small span { color: #bdc3c7; }


/* ── Colori label ─────────────────────────────────────────── */
.label-players  { color: #e74c3c; }
.label-latency  { color: #9b59b6; }
.label-gamemode { color: #27ae60; }
.label-access   { color: #3498db; }
.label-version  { color: #f39c12; }
.label-season   { color: #17a2b8; }
.label-motd     { color: #fd7e14; }

.field-latency        { color: #ecf0f1; }
.field-latency-rating { font-weight: 600; margin-left: 5px; }
.field-motd           { color: #ecf0f1; font-style: italic; }


/* ── Status dot animazioni ────────────────────────────────── */
.status-dot-online {
    background: #27ae60 !important;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.8),
                inset 0 0 5px rgba(255, 255, 255, 0.3);
    border:     2px solid #2ecc71 !important;
    animation:  pulse-green 2s infinite;
}

.status-dot-offline {
    background: #e74c3c !important;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.8),
                inset 0 0 5px rgba(255, 255, 255, 0.3);
    border:     2px solid #c0392b !important;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 0 15px rgba(39, 174, 96, 0.8), inset 0 0 5px rgba(255,255,255,0.3); }
    50%  { box-shadow: 0 0 25px rgba(39, 174, 96, 1),   inset 0 0 5px rgba(255,255,255,0.5); }
    100% { box-shadow: 0 0 15px rgba(39, 174, 96, 0.8), inset 0 0 5px rgba(255,255,255,0.3); }
}