/* Linux Newbies — Modern Revamp */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg:        #0a0e0f;
  --bg2:       #0f1517;
  --bg3:       #131c1e;
  --surface:   #182023;
  --border:    #1e2d31;
  --accent:    #00e5a0;
  --accent2:   #00b8d4;
  --accent3:   #ffcc00;
  --muted:     #4a6670;
  --text:      #c8d8dc;
  --text-dim:  #6e8a92;
  --white:     #eef4f6;
  --red:       #ff4d6a;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-sans: 'Syne', sans-serif;
  --nav-w:     240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── HEADER ────────────────────────────────────────────────── */
#site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo .penguin { font-size: 1.5rem; }
.logo span { color: var(--accent); }

.header-right {
  font-size: 11px;
  color: var(--text-dim);
}
.header-right .blink {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── LAYOUT ────────────────────────────────────────────────── */
#wrapper {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
#sidebar {
  width: var(--nav-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.nav-block-title {
  background: var(--surface);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-block-title::before {
  content: '//';
  color: var(--muted);
}

.nav-block ul { list-style: none; }
.nav-block ul li a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.nav-block ul li:last-child a { border-bottom: none; }
.nav-block ul li a:hover,
.nav-block ul li a.active {
  background: var(--surface);
  color: var(--accent);
  padding-left: 1.2rem;
}
.nav-block ul li a.active {
  border-left: 2px solid var(--accent);
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem;
}
.link-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.4rem;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.link-badge:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ── MAIN ──────────────────────────────────────────────────── */
#main {
  flex: 1;
  min-width: 0;
}

/* ── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
}
.page-header h1 {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.page-header .breadcrumb {
  font-size: 11px;
  color: var(--text-dim);
}
.page-header .breadcrumb a {
  color: var(--accent2);
  text-decoration: none;
}
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ── CONTENT CARD ──────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.card h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.card h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent2);
  margin: 1rem 0 0.5rem;
}
.card p { margin-bottom: 0.8rem; color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.card a { color: var(--accent); text-decoration: none; }
.card a:hover { text-decoration: underline; color: var(--accent2); }
.card ul, .card ol {
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
}
.card ul li, .card ol li { margin-bottom: 0.35rem; }
.card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* ── TERMINAL BLOCK ────────────────────────────────────────── */
.terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin: 0.8rem 0;
  position: relative;
}
.terminal::before {
  content: '● ● ●';
  position: absolute;
  top: 0.5rem; left: 0.8rem;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3em;
}
.terminal pre {
  padding-top: 1.2rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal .prompt { color: var(--accent2); }
.terminal .output { color: var(--text-dim); }

/* ── DISTRO GRID ───────────────────────────────────────────── */
.distro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.distro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.distro-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--white);
}
.distro-card .distro-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.distro-card .distro-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent2);
  margin-bottom: 0.25rem;
}
.distro-card p { font-size: 11px; color: var(--text-dim); margin: 0; }

/* ── APP SECTION LIST ──────────────────────────────────────── */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.app-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.app-item:hover { border-color: var(--accent); }
.app-item .app-icon { font-size: 1.4rem; flex-shrink: 0; }
.app-item .app-info { flex: 1; }
.app-item .app-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.1rem;
}
.app-item .app-desc { font-size: 11px; color: var(--text-dim); }

/* ── MEMBER CARD ───────────────────────────────────────────── */
.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}
.member-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.6rem;
}
.member-card .handle {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}
.member-card .realname { font-size: 11px; color: var(--text-dim); }

/* ── SITEMAP ───────────────────────────────────────────────── */
.sitemap-tree { font-size: 13px; }
.sitemap-tree ul { list-style: none; padding-left: 1.4rem; }
.sitemap-tree > ul { padding-left: 0; }
.sitemap-tree li { padding: 0.2rem 0; }
.sitemap-tree li::before { content: '├─ '; color: var(--muted); }
.sitemap-tree li:last-child::before { content: '└─ '; color: var(--muted); }
.sitemap-tree a { color: var(--accent2); text-decoration: none; }
.sitemap-tree a:hover { color: var(--accent); text-decoration: underline; }

/* ── CHANGES TABLE ─────────────────────────────────────────── */
.changes-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.changes-table th {
  background: var(--surface);
  color: var(--accent);
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.changes-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.changes-table tr:last-child td { border-bottom: none; }
.changes-table td.date { color: var(--text-dim); white-space: nowrap; }

/* ── IRC BOX ───────────────────────────────────────────────── */
.irc-box {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  font-size: 12px;
}
.irc-box .irc-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.irc-box code { color: var(--accent2); }

/* ── FOOTER ────────────────────────────────────────────────── */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}
#site-footer a { color: var(--accent2); text-decoration: none; }
#site-footer a:hover { text-decoration: underline; }

/* ── HOME HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.06), transparent 70%);
}
.hero-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-tag::before { content: '>>'; color: var(--muted); }
.hero h1 {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--text); max-width: 600px; margin-bottom: 1.2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: #00ffb3; }
.btn-outline {
  background: transparent;
  color: var(--accent2);
  border: 1px solid var(--accent2);
}
.btn-outline:hover { background: rgba(0,184,212,0.1); }

/* ── QUICK LINKS (home) ────────────────────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.quick-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.quick-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.quick-tile .tile-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.quick-tile .tile-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.quick-tile .tile-desc { font-size: 11px; color: var(--text-dim); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  #wrapper { flex-direction: column; padding: 1rem; }
  #sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .nav-block { flex: 1 1 200px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  #site-header { padding: 0 1rem; }
}
