/* ============================================================
   ONCE HUMAN DATA — once-human.styles.css
   Dark gaming theme | Cyan accent
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-base:        #0d0d0d;
  --bg-surface:     #111111;
  --bg-card:        #132239;
  --bg-card-hover:  #1a2e4a;
  --border:         #1e2a3a;
  --border-glow:    #06b6d4;

  --accent-primary: #06b6d4;
  --accent-bright:  #22d3ee;
  --accent-dim:     #0891b2;

  --text-primary:   #e8e8f0;
  --text-muted:     #6b6b8a;
  --text-label:     #9090b0;

  --radius-card: 14px;
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-back:hover { color: #ffffff; }

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.header-spacer { flex: 1; }

.header-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

/* ---------- Page Hero ---------- */
.page-hero {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  margin-bottom: 0.75rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Page Sections ---------- */
.page-section {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* ---------- Timer Grid ---------- */
.timer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------- Timer Card ---------- */
.timer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timer-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.1);
}

.timer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.timer-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timer-icon {
  font-size: 1rem;
  opacity: 0.85;
}

.timer-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* ---------- Alert Toggle ---------- */
.alert-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.alert-checkbox { display: none; }

.toggle-track {
  width: 36px;
  height: 20px;
  background: #1e2a3a;
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition), background var(--transition);
}

.alert-checkbox:checked + .toggle-track {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-primary);
}

.alert-checkbox:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
  background: var(--accent-primary);
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.7);
}

.toggle-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.alert-toggle:has(.alert-checkbox:checked) .toggle-text {
  color: var(--accent-primary);
}

/* ---------- Timer Display ---------- */
.timer-display {
  background: #070d14;
  border: 1px solid #0a1a2a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.timer-value {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.5),
               0 0 30px rgba(34, 211, 238, 0.2);
}

.timer-value.urgent {
  color: #f87171;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.6),
               0 0 30px rgba(248, 113, 113, 0.2);
}

.timer-next {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.timer-next span {
  color: var(--text-label);
}

/* ---------- Cosmetics Row ---------- */
.cosm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cosm-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cosm-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 4px 28px rgba(6, 182, 212, 0.15);
}

.cosm-card-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.cosm-card:hover .cosm-card-img {
  transform: scale(1.04);
}

.cosm-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.cosm-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cosm-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
}

.cosm-timer-value {
  font-size: 1.4rem;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.6),
               0 0 36px rgba(34, 211, 238, 0.25);
}

/* ---------- Nav Cards Grid ---------- */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.nav-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.nav-card--cyan:hover  { border-color: var(--accent-primary); }
.nav-card--purple:hover { border-color: #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
.nav-card--amber:hover  { border-color: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }

.nav-card-icon {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-card-icon--cyan   { background: rgba(6, 182, 212, 0.1); }
.nav-card-icon--purple { background: rgba(168, 85, 247, 0.1); }
.nav-card-icon--amber  { background: transparent; border: 2px solid rgba(120, 60, 0, 0.5); }

.nav-card-icon svg {
  width: 40px;
  height: 40px;
}

.nav-card-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nav-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nav-card-title--amber { color: #f59e0b; }

.nav-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Patch Notes ---------- */
.patch-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.patch-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
}

.patch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition);
}

.patch-card--latest { border-color: var(--accent-dim); }

.patch-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--transition);
}

.patch-header:hover { background: var(--bg-card-hover); }

.patch-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.patch-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bg-base);
  background: var(--accent-primary);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

.patch-version {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}

.patch-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.patch-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.patch-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.patch-chevron {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.patch-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.patch-maintenance {
  font-size: 0.82rem;
  color: var(--text-label);
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.25rem;
}

.patch-section { margin-bottom: 1.5rem; }
.patch-section:last-of-type { margin-bottom: 0.5rem; }

.patch-section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.patch-sub-heading {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-label);
  margin: 0.75rem 0 0.3rem;
}

.patch-notes-list {
  list-style: none;
  padding: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.patch-notes-list li {
  font-size: 0.88rem;
  color: var(--text-primary);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}

.patch-notes-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

.patch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.patch-link:hover { color: var(--accent-bright); }

/* ---------- Permission Notice ---------- */
.permission-notice {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0.75rem 2rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.85rem;
  text-align: center;
}

.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .timer-grid  { grid-template-columns: repeat(2, 1fr); }
  .nav-grid    { grid-template-columns: repeat(2, 1fr); }
  .hero-title  { font-size: 2rem; }

  .patch-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

@media (max-width: 560px) {
  .timer-grid  { grid-template-columns: 1fr; }
  .cosm-grid   { grid-template-columns: 1fr; }
  .nav-grid    { grid-template-columns: 1fr; }
  .page-section { padding: 0 1rem; }
  .hero-title   { font-size: 1.6rem; }

  .timer-value { font-size: 1.7rem; }

  .patch-header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
}
