/* ========================================
   ESTADO DEL SERVICIO CSS - SalonBookIt
   Estilos ESPECIFICOS de la pagina de status
   ======================================== */

/* === STATUS HERO BANNER === */
.status-hero-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.status-hero-banner.operational {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-hero-banner.degraded {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-hero-banner.outage {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-pulse {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
}

.status-pulse.operational { background: #10b981; }
.status-pulse.degraded { background: #f59e0b; }
.status-pulse.outage { background: #ef4444; }

.status-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: status-pulse 2s infinite;
}

.status-pulse.operational::before { background: #10b981; }
.status-pulse.degraded::before { background: #f59e0b; }
.status-pulse.outage::before { background: #ef4444; }

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.status-hero-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.status-hero-banner.operational .status-hero-text { color: #10b981; }
.status-hero-banner.degraded .status-hero-text { color: #f59e0b; }
.status-hero-banner.outage .status-hero-text { color: #ef4444; }

/* === STATUS METRICS === */
.status-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.status-metric-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.status-metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-900);
}

.status-metric-value.green { color: #10b981; }

.status-metric-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* === SERVICES STATUS LIST === */
.services-status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.service-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.service-status-item:hover {
    border-color: var(--gold);
}

.service-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
}

.service-icon svg {
    width: 20px;
    height: 20px;
}

.service-name {
    font-weight: 600;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.operational { background: #10b981; }
.status-indicator.degraded { background: #f59e0b; }
.status-indicator.outage { background: #ef4444; }

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.operational {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.degraded {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.outage {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* === INCIDENTS SECTION === */
.incidents-section {
    margin-top: 3rem;
}

.incidents-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.incidents-title svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.incident-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.incident-empty {
    color: var(--gray-500);
}

.no-incidents {
    text-align: center;
    padding: 3rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

.no-incidents-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #10b981;
}

/* === SUBSCRIBE STATUS === */
.subscribe-status {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.subscribe-status h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.subscribe-status p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy-900);
    font-size: 1rem;
}

.subscribe-form input::placeholder {
    color: var(--gray-400);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* === UPTIME HISTORY BOX === */
.uptime-history-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.uptime-history-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.uptime-history-box p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* === RESPONSIVE STATUS === */
@media (max-width: 640px) {
    .service-status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .subscribe-form {
        flex-direction: column;
    }
}
