/* DLG Starter – shared stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Exo+2:wght@300;400;600&display=swap');

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

:root {
  --bg:        #0a0e1a;
  --surface:   #111827;
  --card:      #161f35;
  --border:    #1e3a5f;
  --accent:    #00d4ff;
  --accent2:   #ff6b35;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --success:   #10b981;
  --glow:      rgba(0,212,255,.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,212,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(255,107,53,.06) 0%, transparent 60%);
}

/* ── NAV ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  min-height: 52px;
}

.nav-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: .85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .08em;
  margin-right: 1rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: .35rem .6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(0,212,255,.08);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
}

.site-header .badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(255,107,53,.1));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.site-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: .06em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .6rem;
}

.site-header .subtitle {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* ── MAIN LAYOUT ────────────────────────────────────────── */
.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── HOME CARD GRID (index.html) ────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.nav-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}

.nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,212,255,.15);
}

.nav-card:hover::before { opacity: 1; }

.nav-card .card-icon {
  font-size: 2rem;
  margin-bottom: .8rem;
  display: block;
}

.nav-card .card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .5rem;
}

.nav-card .card-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── RESOURCE SECTION ───────────────────────────────────── */
.resource-section {
  margin-bottom: 2.8rem;
}

.resource-section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .3rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.resource-section .section-desc {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1rem;
  margin-top: .4rem;
}

.section-note {
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 8px;
  padding: .8rem 1rem;
  color: var(--muted);
  font-size: .84rem;
  margin-bottom: 1.2rem;
}

.section-note a {
  color: var(--accent);
  text-decoration: none;
}

.section-note a:hover { text-decoration: underline; }

/* ── FILE LIST ──────────────────────────────────────────── */
.file-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .2s, background .2s, transform .15s;
}

.file-item:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,.06);
  transform: translateX(4px);
}

.file-item .file-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.file-item .file-name {
  flex: 1;
}

.file-item .file-ext {
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  padding: .1rem .4rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links a { padding: .28rem .45rem; font-size: .66rem; }
  .site-header { padding: 2rem 1rem 1.5rem; }
}
