@import url('/subpage-theme.css');

:root {
  --bg-dark: #070a12;
  --surface-card: rgba(13, 19, 33, 0.9);
  --surface-elevated: rgba(20, 29, 48, 0.95);
  --border-hud: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.3);
  --border-glow-gold: rgba(255, 220, 53, 0.35);
  --yellow: #ffdc35;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --red: #ed3b36;
  --green: #10b981;
  --purple: #a855f7;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #070a13 !important;
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 80%),
    radial-gradient(ellipse 60% 40% at 85% 85%, rgba(237, 59, 54, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #070a13 0%, #0a0f1d 50%, #05070c 100%) !important;
  background-attachment: fixed !important;
  background-size: 100% 100% !important;
  color: var(--text-main);
  font: 15px/1.8 "Chakra Petch", system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    linear-gradient(180deg, 
      rgba(7, 10, 19, 0.90) 0%, 
      rgba(7, 10, 19, 0.84) 360px, 
      rgba(5, 7, 13, 0.96) 800px, 
      rgba(4, 6, 11, 0.99) 100%
    ),
    url('/assets/musutafu.png') center top / cover no-repeat;
  opacity: 0.22;
  filter: saturate(1.1) brightness(0.9);
}

a { color: inherit; text-decoration: none; }

main {
  max-width: 1240px;
  margin: auto;
  padding: 40px 24px 90px;
}

h1, h2, h3 {
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: #fff;
}

h1 {
  margin: 16px 0 20px;
  font-size: clamp(44px, 6vw, 76px);
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.4), 3px 3px 0 #000;
}

h1 span {
  color: var(--cyan);
}

h2 {
  margin: 10px 0 16px;
  font-size: clamp(28px, 3.5vw, 42px);
  text-shadow: 2px 2px 0 #000;
}

h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 1px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font: 700 11px/1.4 'Chakra Petch', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--yellow);
  color: #070a12;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.2s;
}

.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   BANNER & METRICS
   ========================================================================== */
.progress-banner {
  padding: 56px 44px;
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  margin-bottom: 35px;
}

.progress-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: 
    linear-gradient(90deg, rgba(7, 10, 18, 0.96) 0%, rgba(13, 22, 44, 0.78) 50%, rgba(7, 10, 18, 0.94) 100%),
    url('/assets/musutafu.png') center/cover;
}

.progress-banner > p:last-child {
  max-width: 720px;
  font-size: 16px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

/* Stat Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.stat-card {
  padding: 18px 22px;
  background: rgba(10, 15, 28, 0.75);
  border: 1px solid var(--border-hud);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.stat-value {
  font-family: Bangers, sans-serif;
  font-size: 38px;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 2px 2px 0 #000;
}

.stat-value.green { color: var(--green); text-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.stat-value.cyan { color: var(--cyan); text-shadow: 0 0 20px rgba(6, 182, 212, 0.4); }
.stat-value.gold { color: var(--yellow); text-shadow: 0 0 20px rgba(255, 220, 53, 0.4); }

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Overall Progress Meter */
.overall-meter-wrap {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.meter-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4 0%, #10b981 100%);
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  transition: width 1s ease-out;
}

/* ==========================================================================
   FILTER CONTROLS
   ========================================================================== */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding: 16px 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-hud);
  border-radius: 10px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hud);
  color: var(--text-muted);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #070a12;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-amber { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.dot-purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }

/* ==========================================================================
   FEATURE CARDS & SECTIONS
   ========================================================================== */
.category-section {
  margin-bottom: 50px;
}

.category-header {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hud);
  padding-bottom: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.status-badge.progress {
  background: rgba(255, 220, 53, 0.12);
  border: 1px solid rgba(255, 220, 53, 0.4);
  color: var(--yellow);
}

.status-badge.planned {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.feature-desc {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.status-details {
  background: rgba(10, 16, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-top: auto;
}

.detail-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-icon {
  font-size: 14px;
  line-height: 1.5;
  flex-shrink: 0;
}

.detail-text strong {
  color: #fff;
  font-weight: 700;
}

.detail-text.working-text { color: #a7f3d0; }
.detail-text.left-text { color: #fef08a; }

/* ==========================================================================
   FEEDBACK CTA
   ========================================================================== */
.progress-cta {
  margin-top: 50px;
  padding: 44px;
  background: linear-gradient(135deg, rgba(16, 26, 48, 0.95) 0%, rgba(9, 14, 25, 0.98) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.progress-cta h2 {
  font-size: 36px;
  margin: 10px 0;
}

.progress-cta p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: #cbd5e1;
  font-size: 15px;
}

.action-btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4);
  transition: transform 0.2s, filter 0.2s;
}

.action-btn-discord:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ==========================================================================
   FOOTER (UNIVERSAL SUBPAGE COMPATIBLE)
   ========================================================================== */
footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-hud);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}

footer .footer-brand {
  font-family: Bangers, Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer .footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--cyan);
}

footer .footer-links a[aria-current="page"] {
  color: var(--cyan-bright);
  font-weight: 700;
}

@media (max-width: 768px) {
  .progress-banner {
    padding: 36px 24px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
