/* ================================================================
   Status Page — status.css
   ================================================================ */

.section-eyebrow {
    display: inline-flex; align-items: center;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #4f46e5; background: #ede9fe;
    padding: 0.25rem 0.85rem; border-radius: 20px;
    margin-bottom: 0.85rem;
}

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.status-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(160deg, #fafafe 0%, #f0f0ff 60%, #fafafe 100%);
    text-align: center; position: relative; overflow: hidden;
}

.status-hero-orb {
    position: absolute; border-radius: 50%;
    pointer-events: none; filter: blur(80px); opacity: 0.3;
}

.orb-a {
    width: 320px; height: 320px;
    background: #c4b5fd; top: -100px; right: -60px;
}

.orb-b {
    width: 180px; height: 180px;
    background: #a5b4fc; bottom: -40px; left: -40px;
}

.status-hero-inner {
    position: relative; z-index: 1;
    max-width: 680px; margin: 0 auto;
}

/* Overall status banner */
.status-overall {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: 2px solid #f3f4f6;
    border-radius: 16px; padding: 1.1rem 1.5rem;
    margin: 0 auto 1.25rem; max-width: 560px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: left;
}

.status-overall.operational { border-color: #a7f3d0; }
.status-overall.degraded    { border-color: #fde68a; }
.status-overall.outage      { border-color: #fca5a5; }

.status-overall-dot {
    width: 16px; height: 16px; border-radius: 50%;
    flex-shrink: 0; animation: pulse-dot 2s infinite;
}

.status-overall.operational .status-overall-dot { background: #059669; box-shadow: 0 0 0 4px #d1fae5; }
.status-overall.degraded    .status-overall-dot { background: #d97706; box-shadow: 0 0 0 4px #fef3c7; }
.status-overall.outage      .status-overall-dot { background: #dc2626; box-shadow: 0 0 0 4px #fee2e2; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.9); }
}

.status-overall-body { flex: 1; }

.status-overall-title {
    font-size: 1rem; font-weight: 800; color: #111827;
    margin-bottom: 0.15rem;
}

.status-overall-sub {
    font-size: 0.72rem; color: #9ca3af;
}

.status-overall-uptime { text-align: right; }

.status-uptime-value {
    font-size: 1.25rem; font-weight: 900; color: #059669;
    line-height: 1;
}

.status-uptime-label {
    font-size: 0.65rem; color: #9ca3af; margin-top: 2px;
}

.status-hero-desc {
    font-size: 0.875rem; color: #9ca3af; line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════════ */
.status-services-section {
    padding: 3rem 0; background: #fff;
}

.status-section-header {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 0.75rem; margin-bottom: 1.5rem;
}

.status-section-title {
    font-size: 1.1rem; font-weight: 800; color: #111827; margin: 0;
}

/* Legend */
.status-legend {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

.status-legend-item {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 500; color: #6b7280;
}

/* Dots */
.status-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

.status-dot.sm { width: 8px; height: 8px; }

.status-dot.operational { background: #059669; }
.status-dot.degraded    { background: #d97706; }
.status-dot.outage      { background: #dc2626; }
.status-dot.maintenance { background: #6b7280; }

/* Service grid */
.status-service-grid {
    display: flex; flex-direction: column; gap: 0;
    border: 1.5px solid #f3f4f6; border-radius: 14px; overflow: hidden;
}

.status-service-card {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1.5px solid #f9fafb;
    transition: background 0.15s;
}

.status-service-card:last-child { border-bottom: none; }
.status-service-card:hover      { background: #fafafe; }

.status-service-left {
    display: flex; align-items: center; gap: 0.85rem; flex: 1;
}

.status-service-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

.status-service-icon.blue   { background: #dbeafe; color: #2563eb; }
.status-service-icon.indigo { background: #ede9fe; color: #4f46e5; }
.status-service-icon.green  { background: #d1fae5; color: #059669; }
.status-service-icon.purple { background: #f3e8ff; color: #7c3aed; }
.status-service-icon.amber  { background: #fef3c7; color: #d97706; }
.status-service-icon.teal   { background: #ccfbf1; color: #0d9488; }

.status-service-name {
    font-size: 0.875rem; font-weight: 700; color: #111827;
    margin-bottom: 0.1rem;
}

.status-service-desc {
    font-size: 0.72rem; color: #9ca3af;
}

.status-service-right {
    display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
}

/* Uptime bars */
.status-bar-row { display: flex; align-items: center; }

.status-bars {
    display: flex; gap: 2px; align-items: flex-end;
}

.status-bars .bar {
    display: inline-block;
    width: 4px; height: 20px; border-radius: 2px;
    transition: opacity 0.15s;
    cursor: default;
}

.status-bars .bar.operational { background: #059669; }
.status-bars .bar.degraded    { background: #d97706; }
.status-bars .bar.outage      { background: #dc2626; }

.status-bars .bar:hover { opacity: 0.7; }

/* Status badge */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 700;
    padding: 0.25rem 0.65rem; border-radius: 20px;
    white-space: nowrap;
}

.status-badge.operational { background: #d1fae5; color: #065f46; }
.status-badge.degraded    { background: #fef3c7; color: #92400e; }
.status-badge.outage      { background: #fee2e2; color: #991b1b; }
.status-badge.maintenance { background: #f3f4f6; color: #374151; }

/* Uptime summary row */
.status-uptime-row {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 1rem; margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: #f9fafb; border-radius: 10px;
    border: 1.5px solid #f3f4f6;
}

.status-uptime-label-text {
    font-size: 0.72rem; color: #9ca3af; font-weight: 500;
}

.status-uptime-label-text i { color: #4f46e5; }

.status-uptime-stats {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.status-uptime-stat { text-align: center; }

.stat-value {
    display: block; font-size: 0.875rem; font-weight: 800;
    color: #059669;
}

.stat-label {
    display: block; font-size: 0.65rem; color: #9ca3af;
    margin-top: 1px;
}

/* ════════════════════════════════════════════════════════════════
   INCIDENTS
   ════════════════════════════════════════════════════════════════ */
.status-incidents-section {
    padding: 3rem 0; background: #f9fafb;
}

.status-incidents-range {
    font-size: 0.72rem; color: #9ca3af; font-weight: 500;
}

.status-incidents-feed {
    display: flex; flex-direction: column; gap: 1rem;
}

/* No incidents */
.status-no-incidents {
    text-align: center; padding: 3rem 1rem;
    background: #fff; border: 1.5px solid #f3f4f6;
    border-radius: 14px;
}

.status-no-incidents-icon {
    font-size: 2.5rem; color: #059669; margin-bottom: 0.75rem;
}

.status-no-incidents-title {
    font-size: 1rem; font-weight: 800; color: #111827;
    margin-bottom: 0.35rem;
}

.status-no-incidents-desc {
    font-size: 0.82rem; color: #9ca3af;
}

/* Incident card */
.status-incident {
    background: #fff; border: 1.5px solid #f3f4f6;
    border-radius: 14px; overflow: hidden;
}

.status-incident.resolved { border-color: #a7f3d0; }
.status-incident.ongoing  { border-color: #fca5a5; }

.status-incident-meta {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1.5px solid #f3f4f6;
    background: #f9fafb;
}

.status-incident-date {
    font-size: 0.78rem; font-weight: 700; color: #374151; flex: 1;
}

.status-incident-badge {
    font-size: 0.65rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.status-incident-badge.resolved { background: #d1fae5; color: #065f46; }
.status-incident-badge.ongoing  { background: #fee2e2; color: #991b1b; }

.status-incident-body { padding: 1rem 1.25rem; }

.status-incident-title {
    font-size: 0.875rem; font-weight: 800; color: #111827;
    margin-bottom: 0.85rem;
}

.status-incident-timeline {
    display: flex; flex-direction: column; gap: 0.65rem;
}

.status-incident-event {
    display: flex; align-items: flex-start; gap: 0.65rem;
    font-size: 0.78rem;
}

.event-time {
    font-size: 0.68rem; color: #9ca3af; flex-shrink: 0;
    min-width: 65px; padding-top: 1px;
}

.event-status {
    font-size: 0.65rem; font-weight: 700;
    padding: 0.1rem 0.4rem; border-radius: 4px;
    flex-shrink: 0; text-transform: uppercase;
}

.event-status.investigating { background: #fef3c7; color: #92400e; }
.event-status.identified    { background: #fee2e2; color: #991b1b; }
.event-status.resolved      { background: #d1fae5; color: #065f46; }

.event-desc { color: #4b5563; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════
   CONTACT NUDGE
   ════════════════════════════════════════════════════════════════ */
.status-contact-section {
    padding: 2.5rem 0;
    background: linear-gradient(160deg, #fafafe 0%, #f0f0ff 60%, #fafafe 100%);
    border-top: 1.5px solid #f3f4f6;
}

.status-contact-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 1.25rem; max-width: 900px; margin: 0 auto;
    background: #fff; border: 1.5px solid #e0e7ff;
    border-radius: 16px; padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(79,70,229,0.07);
}

.status-contact-left {
    display: flex; align-items: center; gap: 1rem; flex: 1;
}

.status-contact-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: #ede9fe; color: #4f46e5;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}

.status-contact-title {
    font-size: 0.9rem; font-weight: 800; color: #111827;
    margin-bottom: 0.2rem;
}

.status-contact-desc {
    font-size: 0.78rem; color: #6b7280; line-height: 1.5;
}

.status-contact-actions {
    display: flex; gap: 0.65rem; flex-wrap: wrap;
}

.btn-status-telegram,
.btn-status-email,
.btn-status-contact {
    display: inline-flex; align-items: center;
    font-size: 0.78rem; font-weight: 700;
    padding: 0.55rem 1rem; border-radius: 9px;
    text-decoration: none; transition: opacity 0.15s;
    white-space: nowrap;
}

.btn-status-telegram {
    background: #2563eb; color: #fff;
}

.btn-status-email {
    background: #4f46e5; color: #fff;
}

.btn-status-contact {
    background: #fff; color: #374151;
    border: 1.5px solid #e5e7eb;
}

.btn-status-telegram:hover,
.btn-status-email:hover { opacity: 0.88; color: #fff; }

.btn-status-contact:hover { border-color: #4f46e5; color: #4f46e5; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .status-service-card  { flex-direction: column; align-items: flex-start; }
    .status-service-right { width: 100%; justify-content: space-between; }
    .status-bars .bar     { width: 3px; height: 16px; }
    .status-contact-inner { flex-direction: column; }
    .status-contact-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .status-overall       { flex-direction: column; text-align: center; }
    .status-overall-uptime { text-align: center; }
    .status-bars          { display: none; }
    .status-uptime-stats  { gap: 1rem; }
}
