/* ===============================
   PÁGINA: STATUS (Estado de Servicios)
   =============================== */

/* Hero */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    background: rgba(2, 6, 23, 0.4);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-display);
    font-weight: 700;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Overall Banner ── */
.status-banner {
    padding: 30px 0;
}

.overall-status {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.overall-up {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.25);
}

.overall-degraded {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
    border-color: rgba(245, 158, 11, 0.25);
}

.overall-down,
.overall-unknown {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
    border-color: rgba(239, 68, 68, 0.25);
}

.overall-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.overall-up .overall-icon { color: #10b981; }
.overall-degraded .overall-icon { color: #f59e0b; }
.overall-down .overall-icon,
.overall-unknown .overall-icon { color: #ef4444; }

.overall-text h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0 0 4px;
}

.overall-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.overall-meta {
    margin-left: auto;
    flex-shrink: 0;
}

.last-check {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.last-check i {
    margin-right: 4px;
    opacity: 0.7;
}

/* ── Services Grid ── */
.status-services {
    padding: 40px 0;
}

.service-group {
    margin-bottom: 32px;
}

.group-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-title i {
    font-size: 0.95rem;
    opacity: 0.7;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.service-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-up .service-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-degraded .service-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-down .service-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Animación de pulso para dot activo */
.status-up .service-dot {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.7); }
}

.service-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.service-ms {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: 'Courier New', monospace;
}

.service-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-up .service-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-degraded .service-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-down .service-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Uptime History ── */
.status-uptime {
    padding: 40px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent, #2563eb);
    font-size: 1rem;
}

.uptime-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.uptime-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.6);
}

.uptime-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.uptime-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.uptime-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.uptime-name {
    font-weight: 500;
}

.uptime-bar {
    display: inline-block;
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}

.uptime-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.uptime-fill.excellent { background: #10b981; }
.uptime-fill.good { background: #f59e0b; }
.uptime-fill.poor { background: #ef4444; }

.uptime-pct {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.85rem;
}

.uptime-ms,
.uptime-checks {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* ── Community Section ── */
.status-community {
    padding: 40px 0 80px;
}

.community-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.community-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.community-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.community-card.discord .community-icon {
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
}

.community-card.whatsapp .community-icon {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.community-card.email .community-icon {
    background: rgba(37, 99, 235, 0.2);
    color: #3b82f6;
}

.community-body h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

.community-body p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.community-arrow {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.2s;
}

.community-card:hover .community-arrow {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 100px 0 40px; }

    .overall-status {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }

    .overall-meta {
        margin-left: 0;
    }

    .service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
    }

    .service-meta {
        width: 100%;
        justify-content: space-between;
    }

    .uptime-bar { width: 60px; }

    .community-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }

    .service-name { font-size: 0.85rem; }
    .service-ms { font-size: 0.75rem; }
}
