/* status.css - Stili per System Status */

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .status-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.service-card {
    background: #111112;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: #141415;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Cambiato da flex-start a center per allineamento pillole */
    gap: 1rem;
    flex-wrap: wrap; /* Permette il wrap su schermi molto stretti */
}

.service-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-type {
    font-size: 0.6rem;
    font-weight: 900;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.service-type.web { 
    background: rgba(0, 162, 255, 0.05); 
    color: #00a2ff; 
    border: 1px solid rgba(0, 162, 255, 0.1);
}
.service-type.discord { 
    background: rgba(88, 101, 242, 0.05); 
    color: #5865f2; 
    border: 1px solid rgba(88, 101, 242, 0.1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem; /* Reso più squadrato */
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Online */
.status-badge.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-badge.online .status-dot { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

/* Maintenance */
.status-badge.maintenance {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-badge.maintenance .status-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

/* Offline */
.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-badge.offline .status-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.service-desc {
    font-size: 0.85rem;
    color: #71717a;
    line-height: 1.5;
}

/* Overall Status Header */
.overall-card {
    background: #0d0d0e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.overall-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overall-icon.operational { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.overall-icon.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.overall-icon.critical { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.overall-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.overall-update {
    font-size: 0.75rem;
    color: #52525b;
}

/* Legend */
.legend-box {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
}

.legend-title {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legend-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #a1a1aa;
}
