/* ============================================================
   DESIGN SYSTEM — Miguel Gomez · Space Terminal Edition
   Single dark theme · Cyan accent · Holo panels · Scanlines
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #04080d;
  --bg-2:         #080e16;
  --bg-3:         #0c1520;
  --surface:      rgba(79,195,247,0.03);
  --surface-2:    rgba(79,195,247,0.06);
  --border:       rgba(79,195,247,0.1);
  --border-2:     rgba(79,195,247,0.22);

  --txt:          #d4e8f5;
  --txt-2:        #7a9ab5;
  --txt-3:        #3a5570;

  --accent:       #4fc3f7;
  --accent-dim:   rgba(79,195,247,0.1);
  --accent-glow:  rgba(79,195,247,0.06);
  --accent-2:     #4fc3f7;
  --accent-3:     #4fc3f7;
  --danger:       #f87171;
  --success:      #4ade80;

  --glow-sm:      0 0 10px rgba(79,195,247,0.25), 0 0 20px rgba(79,195,247,0.08);
  --glow-md:      0 0 20px rgba(79,195,247,0.3), 0 0 60px rgba(79,195,247,0.08);
  --glow-border:  0 0 0 1px rgba(79,195,247,0.35), 0 0 12px rgba(79,195,247,0.1);
  --glow-text:    0 0 8px rgba(79,195,247,0.6);

  --r-sm:   3px;
  --r-md:   6px;
  --r-lg:   10px;

  --nav-h:  58px;
  --font-mono: 'DM Mono', 'Söhne Mono', 'Consolas', 'Menlo', 'Monaco', 'Courier New', monospace;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 380ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Scanline overlay */
  --scanline-opacity: 0.025;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--txt); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── Scanlines ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,var(--scanline-opacity)) 2px,
    rgba(0,0,0,var(--scanline-opacity)) 4px
  );
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Canvas starfield ───────────────────────────────── */
#starfield {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.7;
}

/* ── Layout ─────────────────────────────────────────── */
.page-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding-top: var(--nav-h); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(4,8,13,0.9);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
/* Subtle top glow line on nav */
.nav::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.15;
  pointer-events: none;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--txt); letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-sm);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: var(--glow-sm); }
  50% { opacity: 0.3; box-shadow: none; }
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--txt-3);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--accent); background: var(--surface); }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--txt-3);
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
  display: none; flex-direction: column; gap: 2px;
  transform: translateY(-8px); opacity: 0;
  transition: all var(--transition);
}
.mobile-nav.open { opacity: 1; transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--txt-3); padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: all var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); background: var(--accent-dim); }

/* ── Holo Panels & Cards ─────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
/* Corner notch — top right */
.panel::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--bg);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
/* Top edge glow */
.panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.2;
  pointer-events: none; z-index: 1;
}

/* Explicit notch class for cards */
.panel-notch {
  position: relative;
}
.panel-notch::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 18px; height: 18px;
  background: var(--bg);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  box-shadow: 0 0 20px rgba(79,195,247,0.06);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover::before { opacity: 1; }

/* ── Typography ─────────────────────────────────────── */
.label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 300; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 14px; font-weight: 500; }
p { font-size: 15px; color: var(--txt-2); line-height: 1.75; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.muted { color: var(--txt-3); }

/* ── Chips / Tags ───────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--txt-3);
  white-space: nowrap;
  transition: all var(--transition);
}
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.chip-accent { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface); color: var(--txt-3);
  transition: all var(--transition); cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-primary {
  background: transparent; border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover {
  background: var(--accent); color: var(--bg);
  box-shadow: var(--glow-md);
}
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-sm { font-size: 10px; padding: 6px 12px; }

/* ── Terminal ────────────────────────────────────────── */
.terminal {
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: var(--txt-2); line-height: 1.9;
  position: relative;
}
.terminal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.18;
}
.terminal .prompt { color: var(--accent); text-shadow: var(--glow-text); }
.terminal .ok { color: var(--success); }
.terminal .warn { color: var(--accent-3); }

/* ── Status badge ────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--txt-3); padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(74,222,128,0.8), 0 0 12px rgba(74,222,128,0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Grid helpers ────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 100px 0 80px; position: relative; }
.hero-eyebrow { margin-bottom: 24px; }
.hero-title { margin-bottom: 20px; }
.hero-title em {
  font-style: normal; color: var(--accent);
  text-shadow: var(--glow-text);
}
.hero-sub {
  font-size: 17px; font-weight: 300; color: var(--txt-2);
  max-width: 540px; margin-bottom: 36px; line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Status panel */
.status-panel {
  display: inline-flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 24px; margin-top: 56px;
  position: relative;
}
.status-panel::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--bg);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.status-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
}
.status-key { color: var(--txt-3); width: 80px; flex-shrink: 0; }
.status-val { color: var(--txt); }
.status-val.ok { color: var(--success); text-shadow: 0 0 6px rgba(74,222,128,0.4); }

/* ── Section header ──────────────────────────────────── */
.section-header { margin-bottom: 40px; }
.section-header .label { margin-bottom: 10px; }
.section-header p { max-width: 540px; margin-top: 10px; }

/* ── Divider ─────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); letter-spacing: 0.06em; }
.footer-hint { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); display: flex; align-items: center; gap: 8px; }
.footer-hint kbd {
  display: inline-block; padding: 1px 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; font-size: 10px; color: var(--txt-3);
}

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,8,13,0.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--glow-md);
  max-width: 640px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  transform: translateY(14px) scale(0.97);
  transition: transform var(--transition);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; background: var(--bg-2); z-index: 1;
}
.modal-body { padding: 24px 28px 28px; }
.modal-close {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 6px 10px;
  color: var(--txt-3); font-size: 13px; line-height: 1;
  transition: all var(--transition); flex-shrink: 0;
  font-family: var(--font-mono);
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); }

/* ── Form elements ───────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-3);
}
.form-input, .form-select, .form-textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px;
  font-family: var(--font-mono); font-size: 13px; color: var(--txt);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%; outline: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-border);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--txt-3); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-2); color: var(--txt); }

/* ── Misc utilities ──────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mb-8  { margin-bottom: 8px;  } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.mt-8  { margin-top: 8px;  } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  #starfield { display: none; }
  body::before { display: none; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

/* ── Page: Dashboard (index) ─────────────────────────── */
.highlight-cards { margin-top: 0; }
.highlight-card { padding: 28px; cursor: pointer; }
.highlight-card .icon { font-size: 20px; margin-bottom: 14px; display: block; color: var(--accent); }
.highlight-card h3 { margin-bottom: 8px; }
.highlight-card p { font-size: 13px; }
.highlight-card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--accent); margin-top: 16px;
}

.bullets-list { display: flex; flex-direction: column; gap: 10px; }
.bullets-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--txt-2); font-family: var(--font-mono);
}
.bullets-list li::before {
  content: '›'; color: var(--accent); font-family: var(--font-mono);
  flex-shrink: 0; margin-top: 1px;
}

.preview-entry { padding: 14px 0; border-bottom: 1px solid var(--border); }
.preview-entry:last-child { border-bottom: none; }
.preview-entry .meta {
  font-family: var(--font-mono); font-size: 10px; color: var(--txt-3);
  margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
}
.preview-entry h4 { font-size: 13px; font-weight: 500; color: var(--txt); font-family: var(--font-mono); }

/* ── Page: Projects ──────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card { cursor: pointer; }
.project-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.project-card h3 { margin-bottom: 8px; font-size: 16px; }
.project-card .desc { font-size: 13px; color: var(--txt-2); }

.modal-section { margin-bottom: 22px; }
.modal-section h4 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.modal-section ul { display: flex; flex-direction: column; gap: 6px; }
.modal-section ul li {
  font-size: 13px; color: var(--txt-2); font-family: var(--font-mono);
  padding-left: 16px; position: relative; line-height: 1.6;
}
.modal-section ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }

/* ── Page: Football (diary) ──────────────────────────── */
.soccer-layout {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 0; height: calc(100vh - var(--nav-h) - 60px); min-height: 600px;
}
.soccer-sidebar {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.soccer-controls {
  padding: 16px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.soccer-list { overflow-y: auto; flex: 1; }
.soccer-entry-item {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
}
.soccer-entry-item:hover { background: var(--surface); }
.soccer-entry-item.active {
  background: var(--accent-dim); border-left: 2px solid var(--accent);
}
.soccer-entry-item .entry-date {
  font-family: var(--font-mono); font-size: 10px; color: var(--txt-3);
  letter-spacing: 0.06em; margin-bottom: 3px;
}
.soccer-entry-item .entry-match { font-size: 13px; font-weight: 500; color: var(--txt); font-family: var(--font-mono); }
.soccer-entry-item .entry-comp { font-size: 10px; color: var(--txt-3); margin-top: 2px; font-family: var(--font-mono); }
.soccer-detail { overflow-y: auto; padding: 32px; }
.soccer-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px; color: var(--txt-3); font-family: var(--font-mono); font-size: 12px; text-align: center;
}
.entry-header { margin-bottom: 28px; }
.entry-score {
  font-family: var(--font-mono); font-size: 28px; font-weight: 300;
  letter-spacing: 0.02em; color: var(--txt); margin: 8px 0;
}
.rating-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-radius: var(--r-sm); padding: 3px 10px; color: var(--accent);
}
.entry-section { margin-bottom: 24px; }
.entry-section-title {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.entry-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.entry-bullets { display: flex; flex-direction: column; gap: 6px; }
.entry-bullets li {
  font-size: 13px; color: var(--txt-2); font-family: var(--font-mono);
  padding-left: 16px; position: relative; line-height: 1.6;
}
.entry-bullets li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }
.takeaways { display: flex; flex-direction: column; gap: 10px; }
.takeaway { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--txt-2); font-family: var(--font-mono); }
.takeaway-num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--accent); border-radius: 2px;
  padding: 2px 6px; flex-shrink: 0; margin-top: 2px;
}

/* ── Page: About ─────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--border); position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-2); flex-shrink: 0; margin-top: 5px;
  border: 1px solid var(--border-2);
}
.timeline-dot.active {
  background: var(--accent);
  box-shadow: var(--glow-sm);
  border-color: var(--accent);
}
.timeline-content { flex: 1; }
.timeline-date { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 500; color: var(--txt); margin-bottom: 3px; font-family: var(--font-mono); }
.timeline-desc { font-size: 12px; color: var(--txt-2); font-family: var(--font-mono); line-height: 1.6; }

/* ── Page: Contact ───────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.links-panel { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.links-panel .link-card:last-child { border-bottom: none; }
.link-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  transition: background var(--transition); text-decoration: none;
}
.link-card:hover { background: var(--surface); }
.link-card .link-icon { font-family: var(--font-mono); font-size: 14px; width: 32px; flex-shrink: 0; color: var(--accent); }
.link-card .link-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt-3); }
.link-card .link-val { font-family: var(--font-mono); font-size: 13px; color: var(--txt); margin-top: 2px; }
.link-card .link-arrow { margin-left: auto; color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.form-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px; text-align: center; font-family: var(--font-mono); color: var(--success);
}

/* ── Auth gate (Netlify Identity) ────────────────────── */
.auth-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 48px 24px; text-align: center;
  border: 1px dashed var(--border-2); border-radius: var(--r-lg);
  background: var(--surface); margin: 24px 0;
}
.auth-gate-icon { font-size: 24px; }
.auth-gate-title { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--txt); letter-spacing: 0.06em; }
.auth-gate-sub { font-family: var(--font-mono); font-size: 11px; color: var(--txt-2); max-width: 320px; line-height: 1.7; }
.auth-user-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 16px;
}
.auth-user-info { font-family: var(--font-mono); font-size: 11px; color: var(--txt-2); }
.auth-user-info strong { color: var(--success); }
[data-auth-protected] { display: none !important; }
[data-auth-protected].auth-visible { display: flex !important; }
[data-auth-gate].auth-hidden { display: none !important; }

@media (max-width: 900px) {
  .soccer-layout { grid-template-columns: 1fr; height: auto; }
  .soccer-sidebar { height: 300px; border-right: none; border-bottom: 1px solid var(--border); }
  .soccer-detail { padding: 20px; }
  .contact-layout { grid-template-columns: 1fr; }
}
