/* ============================================================
   FilexFlow - status.css
   Página /status.html
   ============================================================ */

/* ---------------------------------------------
   LAYOUT GENERAL
---------------------------------------------- */

.layout-status {
  align-items: flex-start;
}

@media (min-width: 960px) {
  .layout-status {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

/* HERO LABEL (SERVICE STATUS) */
.hero-label {
  display: inline-flex;        /* solo ocupa lo que mide el contenido */
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-badge-text {
  display: inline-block;
  padding: 5px 10px;          /* pill compacto */
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;        /* no se parte en varias líneas */
  background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .status-badge-text {
  background: rgba(0, 0, 0, 0.06);
}



/* ---------------------------------------------
   CARD PRINCIPAL (LEFT)
---------------------------------------------- */

.card-status-main .card-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 24px;
}

body[data-theme="light"] .card-status-main .card-inner {
  background: #f9fafb;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #111827;
}

body[data-theme="dark"] .card-status-main .card-inner {
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

/* ---------------------------------------------
   GLOBAL STATUS PILL
---------------------------------------------- */

.status-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148,163,184,0.32);
}

/* Dots del pill global según estado */
.status-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Operational = verde */
.status-pill-dot-operational {
  background: #22c55e;
}

/* Degraded = amarillo */
.status-pill-dot-degraded {
  background: #eab308;
}

/* Outage = rojo */
.status-pill-dot-outage {
  background: #ef4444;
}


/* ---------------------------------------------
   LAST UPDATE
---------------------------------------------- */

.status-last-update {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------------------------------------------
   SECTIONS
---------------------------------------------- */

.status-section {
  padding-top: 8px;
  border-top: 1px dashed rgba(148,163,184,0.35);
}

.status-section:first-of-type {
  border-top: none;
}

.status-section-title {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------------------------------------------
   MODULES LIST
---------------------------------------------- */

.status-modules {
  border-radius: 16px;
  overflow: hidden;
}

body[data-theme="light"] .status-modules {
  background: #f3f5f9;
  border: 1px solid rgba(15,23,42,0.1);
}

body[data-theme="dark"] .status-modules {
  background: rgba(2,6,23,0.6);
  border: 1px solid rgba(148,163,184,0.18);
}

.status-module-row {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body[data-theme="light"] .status-module-row + .status-module-row {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ---------------------------------------------
   STATUS TAGS (Operational / Degraded / Outage)
---------------------------------------------- */

.status-tag {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid;
}

/* LIGHT MODE refined */
body[data-theme="light"] .status-tag-operational {
  color: #166534;
  border-color: rgba(22,163,74,0.35);
  background: linear-gradient(to bottom right,
    rgba(34,197,94,0.15),
    rgba(34,197,94,0.05)
  );
  box-shadow: none;
}

body[data-theme="light"] .status-tag-degraded {
  color: #854d0e;
  border-color: rgba(234,179,8,0.35);
  background: linear-gradient(to bottom right,
    rgba(234,179,8,0.15),
    rgba(234,179,8,0.05)
  );
  box-shadow: none;
}

body[data-theme="light"] .status-tag-outage {
  color: #b91c1c;
  border-color: rgba(239,68,68,0.4);
  background: linear-gradient(to bottom right,
    rgba(239,68,68,0.15),
    rgba(239,68,68,0.05)
  );
  box-shadow: none;
}

/* DARK MODE original glow */
body[data-theme="dark"] .status-tag-operational {
  color: #22c55e;
  border-color: rgba(34,197,94,0.6);
}

body[data-theme="dark"] .status-tag-degraded {
  color: #eab308;
  border-color: rgba(234,179,8,0.7);
}

body[data-theme="dark"] .status-tag-outage {
  color: #f97373;
  border-color: rgba(248,113,113,0.75);
}

/* ---------------------------------------------
   UPTIME
---------------------------------------------- */

.status-uptime {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3,1fr);
}

.status-uptime-item {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
}

body[data-theme="light"] .status-uptime-item {
  background: #f3f5f9;
  border: 1px solid rgba(0,0,0,0.06);
}

/* ---------------------------------------------
   INCIDENTS
---------------------------------------------- */

.status-incidents {
  border-radius: 16px;
  padding: 15px;
}

.status-incident-item {
  padding: 12px 0;
  border-top: 1px dashed rgba(148,163,184,0.25);
}

.status-incident-item:first-child {
  border-top: none;
}

.status-incident-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.status-incident-meta {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
}

.status-incident-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.65rem;
}

/* ---------------------------------------------
   RIGHT CARD (commercial text)
---------------------------------------------- */

.card-status-side .card-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-side-section {
  padding-top: 10px;
  border-top: 1px dashed rgba(148,163,184,0.35);
}

.status-side-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------------------------------------------
   MOBILE
---------------------------------------------- */

@media (max-width: 760px) {
  .status-uptime {
    grid-template-columns: 1fr;
  }
  
  .card-status-side {
    margin-top: 24px;
  }
}

/* Botón "Contact support": tamaño natural */
.card-status-side .btn-primary {
  align-self: flex-start;
}

/* Paginador de incidentes tipo dashboard */
.status-incidents-pagination {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.pager-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.pager-btn:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.12);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.pager-label {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

