/* ============================================================
   STATUS PAGE STYLES
   Depends on: main.css (CSS variables, reset, header, footer, loading)
============================================================ */

/* ===== LAST CHECKED (inside shared hero) ===== */
.status-last-checked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-vt);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  margin-top: 20px;
}

/* ===== STATUS BANNER ===== */
.status-banner {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(8, 14, 28, 0.85);
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.6px;
}
.status-banner.banner-online {
  border-color: rgba(92,201,30,0.4);
  color: var(--text-white);
}
.status-banner-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--stone);
  flex-shrink: 0;
}
.status-banner-dot.dot-online {
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(92,201,30,0.7);
  animation: dotBlink 2s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ===== MAIN LAYOUT ===== */
.status-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ===== SERVER CARDS GRID ===== */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.status-card {
  background: var(--night-panel);
  border: 4px solid #000;
  box-shadow:
    inset 3px 3px 0 var(--panel-hi),
    inset -3px -3px 0 var(--panel-sh),
    7px 7px 0 rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.status-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 20px;
  border-bottom: 2px solid rgba(255,255,255,0.07);
}
.status-card-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 3px solid #000;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.bedrock-icon  { background: #2A5F3A; color: #7EDA4A; box-shadow: 3px 3px 0 #000; }
.server-icon   { background: #7A2E10; color: #F4823A; box-shadow: 3px 3px 0 #000; }
.discord-icon  { background: #1A2A6A; color: #7289DA; box-shadow: 3px 3px 0 #000; }

.status-card-name {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-sand);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 6px;
  line-height: 1.6;
}
.status-card-sub {
  font-family: var(--font-vt);
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 2px solid rgba(255,255,255,0.12);
  font-family: var(--font-vt);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-online {
  color: var(--accent-green);
  border-color: rgba(92,201,30,0.35);
  background: rgba(92,201,30,0.08);
}
.status-offline {
  color: var(--accent-red);
  border-color: rgba(227,74,47,0.35);
  background: rgba(227,74,47,0.08);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: dotBlink 2s ease-in-out infinite;
}

/* Card body */
.status-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.status-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.status-stat-row:last-child { border-bottom: none; }

.stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-label i { width: 14px; text-align: center; }

.stat-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-white);
  text-align: right;
}
.stat-value.mono { font-family: var(--font-vt); font-size: 1.1rem; color: var(--text-sand); }
.stat-value.stat-green { color: var(--accent-green); }

/* Card footer */
.status-card-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  flex-wrap: wrap;
}

/* ===== SHARED BUTTON STYLES ===== */
.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-family: var(--font-pixel);
  font-size: 9px;
  cursor: pointer;
  transition: box-shadow 0.1s, transform 0.1s, background 0.15s;
  letter-spacing: 0.4px;
  text-align: center;
  white-space: nowrap;
}
.mc-btn:hover  { box-shadow: 2px 2px 0 #000; transform: translate(2px, 2px); }
.mc-btn:active { box-shadow: 0 0 0 #000; transform: translate(4px, 4px); }

.mc-btn-copy {
  background: linear-gradient(180deg, var(--btn-green-hi) 0%, var(--btn-green) 50%, var(--btn-green-dk) 100%);
  color: #fff;
}
.mc-btn-copy.success { background: #2E6010; }

.mc-btn-outline {
  background: rgba(255,255,255,0.05);
  color: var(--text-sand);
  border-color: rgba(255,255,255,0.15);
}
.mc-btn-outline:hover { background: rgba(255,255,255,0.1); }

.mc-btn-discord {
  background: linear-gradient(180deg, #7289DA 0%, #5865F2 100%);
  color: #fff;
}
.mc-btn-discord:hover { background: linear-gradient(180deg, #8EA0E8 0%, #6D78F5 100%); }

/* ===== SECTION SHARED ===== */
.section-pixel-title {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 2vw, 14px);
  color: var(--text-sand);
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 16px;
  line-height: 1.8;
}
.section-body-text {
  font-family: var(--font-body);
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== UPTIME SECTION ===== */
.uptime-section {
  margin-top: 64px;
  background: var(--night-panel);
  border: 4px solid #000;
  box-shadow:
    inset 3px 3px 0 var(--panel-hi),
    inset -3px -3px 0 var(--panel-sh),
    7px 7px 0 rgba(0,0,0,0.5);
  padding: 36px 40px;
}

.uptime-bar-grid {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 48px;
  margin-bottom: 16px;
}
.uptime-bar {
  flex: 1;
  min-width: 6px;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.5);
  cursor: default;
  transition: opacity 0.15s;
}
.uptime-bar:hover { opacity: 0.75; }
.uptime-operational { background: var(--accent-green); }
.uptime-degraded    { background: var(--accent-gold); }
.uptime-outage      { background: var(--accent-red); }

.uptime-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.legend-dot {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.5);
}
.legend-green  { background: var(--accent-green); }
.legend-yellow { background: var(--accent-gold); }
.legend-red    { background: var(--accent-red); }

/* ===== INCIDENT LOG ===== */
.incident-section {
  margin-top: 56px;
  background: var(--night-panel);
  border: 4px solid #000;
  box-shadow:
    inset 3px 3px 0 var(--panel-hi),
    inset -3px -3px 0 var(--panel-sh),
    7px 7px 0 rgba(0,0,0,0.5);
  padding: 36px 40px;
}

.incident-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.incident-entry {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: flex-start;
}
.incident-entry:last-child { border-bottom: none; }

.incident-date {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-muted);
  min-width: 80px;
  flex-shrink: 0;
  margin-top: 4px;
  line-height: 1.8;
}
.incident-info { flex: 1; }
.incident-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 2px solid;
  font-family: var(--font-pixel);
  font-size: 8px;
  margin-bottom: 12px;
}
.badge-ok {
  color: var(--accent-green);
  border-color: rgba(92,201,30,0.4);
  background: rgba(92,201,30,0.07);
}
.badge-minor {
  color: var(--accent-gold);
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.07);
}
.badge-major {
  color: var(--accent-red);
  border-color: rgba(227,74,47,0.4);
  background: rgba(227,74,47,0.07);
}
.incident-info p {
  font-family: var(--font-body);
  color: #9ABEDC;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CONNECT HELP ===== */
.connect-help {
  margin-top: 56px;
  text-align: center;
}
.connect-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 0;
}
.connect-help-card {
  background: var(--night-panel);
  border: 4px solid #000;
  box-shadow:
    inset 2px 2px 0 var(--panel-hi),
    inset -2px -2px 0 var(--panel-sh),
    5px 5px 0 rgba(0,0,0,0.4);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.connect-help-icon {
  font-size: 2rem;
  color: var(--accent-aqua);
  text-shadow: 0 0 12px rgba(34,212,204,0.4);
}
.connect-help-card h3 {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-sand);
  text-shadow: 2px 2px 0 #000;
  line-height: 1.8;
}
.connect-help-card p {
  font-family: var(--font-body);
  color: #9ABEDC;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FADE-UP (matches main.css pattern) ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .status-hero { padding: 100px 16px 48px; }
  .status-main { padding: 0 16px 60px; }
  .status-grid { grid-template-columns: 1fr; }
  .status-card-header { flex-direction: column; align-items: flex-start; }
  .uptime-section,
  .incident-section { padding: 24px 20px; }
  .incident-entry { flex-direction: column; gap: 12px; }
  .incident-date { min-width: unset; }
  .connect-help-grid { grid-template-columns: 1fr; }
  .status-banner { margin-top: 24px; }
}
