/* ——— YUSYUS UI Theme (adapted from html/index.html) ——— */
/* Red accent colors changed to dark blue */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1a1816;
  --text: #e8e0d6;
  --text-muted: #8a7e72;
  --accent: #2f5d8f;       /* was #c84546 (red) → dark blue (brightened) */
  --accent-hover: #4a7fb5; /* was #e05556 (red hover) → dark blue hover (brightened) */
  --border: #3a3530;
  --card-bg: #24211e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ——— Navigation ——— */
/* (bare `nav` rules removed — they conflicted with the app navbar) */

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-admin {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 4px 12px;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.15s ease;
}
.nav-admin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ——— Hero ——— */
.hero {
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.hero-main { min-width: 0; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 480px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

/* ——— Links (Side Panel) ——— */
.links-panel {
  position: relative;
}

.links-panel::before {
  content: 'INDEX';
  position: absolute;
  top: -32px; left: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.links-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.links-list a:hover {
  background: var(--card-bg);
  color: var(--accent);
}

.links-list a .link-indicator {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.15s ease;
}
.links-list a:hover .link-indicator {
  color: var(--accent);
}

.links-list a.permanent {
  font-weight: 600;
  border-left: 2px solid transparent;
}
.links-list a.permanent:hover {
  border-left-color: var(--accent);
}

.links-list a.dynamic {
  color: var(--text-muted);
}
.links-list a.dynamic:hover {
  color: var(--text);
}

/* ——— Footer ——— */
.footer-meta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-meta span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease;
}
.footer-meta a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ——— Modal ——— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 24px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.15s ease;
  line-height: 1;
}
.modal-close:hover { color: var(--accent); }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s ease;
  border-radius: 0;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-input::placeholder { color: #a8bbb3; }

.btn {
  width: 100%;
  padding: 10px 0;
  background: var(--text);
  border: none;
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 0;
}
.btn:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: 6px;
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.msg {
  font-size: 11px;
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
}
.msg.err { color: var(--accent); }
.msg.succ { color: #3d6b4f; }

.hidden { display: none !important; }

/* ——— Responsive ——— */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 96px 24px 48px;
  }
  nav { padding: 0 20px; }
  .footer-meta { padding: 20px 24px 32px; flex-direction: column; gap: 8px; text-align: center; }
  .nav-links { gap: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero-description { font-size: 12px; padding-left: 14px; }
  .modal-box { padding: 24px; }
}
