/* ═══════════════════════════════════════════════════════════════════
   TERMSTUDIO — style.css
   Old-school Linux project site aesthetic
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --bg:           #0d0d0d;
  --bg2:          #141414;
  --bg3:          #1c1c1c;
  --border:       #2a2a2a;
  --border-green: #1a4a2a;
  --green:        #00cc44;
  --green-dim:    #009933;
  --green-bright: #00ff55;
  --amber:        #ff9900;
  --red:          #cc3300;
  --text:         #c8c8c8;
  --text-dim:     #888888;
  --text-bright:  #e8e8e8;
  --white:        #f0f0f0;
  --font-mono:    "Courier New", Courier, "Lucida Console", monospace;
  --font-body:    Georgia, "Times New Roman", serif;
  --font-ui:      "Courier New", monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── ACCESSIBILITY ── */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green);
  color: #000;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }
.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;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--green-dim);
  color: #000;
  text-align: center;
  padding: 5px 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--green);
}

/* ── HEADER ── */
#header {
  background: var(--bg2);
  border-bottom: 2px solid var(--green);
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 2px solid var(--green-dim);
  padding: 2px;
  background: #000;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--green); }
.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* NAV */
#main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  flex-wrap: wrap;
}
#main-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid transparent;
  display: block;
  transition: all 0.15s;
}
#main-nav a:hover,
#main-nav a:focus {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(0,204,68,0.07);
  outline: none;
}
#main-nav a.nav-active { color: var(--green); border-color: var(--border-green); }

/* ── SECTIONS — shared ── */
section { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
h2 {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: 0.6rem;
}
p { margin-bottom: 0.9rem; }
a { color: var(--green); }
a:hover { color: var(--green-bright); }
code {
  font-family: var(--font-mono);
  background: #0a1a0f;
  color: var(--green-bright);
  padding: 1px 5px;
  font-size: 0.88em;
  border: 1px solid var(--border-green);
}
.section-intro {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  max-width: 780px;
}

/* ── ASCII DIVIDER ── */
.ascii-divider {
  text-align: center;
  padding: 0.4rem 0;
  overflow: hidden;
}
.ascii-divider span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--border-green);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── HERO ── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Terminal widget */
.hero-terminal {
  background: #000;
  border: 2px solid var(--green);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 0 24px rgba(0,204,68,0.18), inset 0 0 40px rgba(0,0,0,0.8);
}
.terminal-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--green-dim);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tb-btn {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.tb-r { background: #cc3333; border: 1px solid #aa2222; }
.tb-y { background: #cc9933; border: 1px solid #aa7722; }
.tb-g { background: var(--green-dim); border: 1px solid #006622; }
.tb-title {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
}
.terminal-body { padding: 1.2rem 1.2rem 1.4rem; line-height: 1.9; }
.t-line { display: block; }
.t-prompt { color: var(--green); margin-right: 6px; user-select: none; }
.t-cmd { color: var(--white); }
.t-out { color: var(--text-dim); padding-left: 18px; }
.t-green { color: var(--green-bright) !important; }

/* dots animation */
.t-dots::after {
  content: '';
  animation: dots 1.5s steps(3, end) infinite;
}
@keyframes dots {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}

/* cursor blink */
.cursor-blink {
  color: var(--green);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hero text */
.hero-text h1 {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  color: var(--green-bright);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0,255,85,0.25);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
}
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--green-dim);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: background 0.15s, color 0.15s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--green-bright);
  color: #000;
  outline: none;
}
.btn-primary.btn-large { padding: 14px 28px; font-size: 1rem; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 10px 20px;
  text-decoration: none;
  border: 2px solid var(--green-dim);
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(0,204,68,0.1);
  color: var(--green-bright);
  outline: none;
}
.btn-dl {
  display: inline-block;
  background: transparent;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 7px 14px;
  text-decoration: none;
  border: 1px solid var(--green-dim);
  margin-top: 1rem;
}
.btn-dl:hover { background: rgba(0,204,68,0.08); color: var(--green-bright); }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-dim);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.15s;
}
.feature-card:hover { border-left-color: var(--green); border-color: var(--border-green); }
.fc-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
}
.feature-card h3 { color: var(--amber); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

/* ── SCREENSHOTS ── */
.screenshots-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.screenshot-fig { flex: 1; min-width: 280px; }
.screenshot-img {
  width: 100%;
  height: auto;
  border: 2px solid var(--border-green);
  display: block;
}
.screenshot-fig figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  text-align: center;
}

/* ── INSTALL TABS ── */
.install-tabs { margin-top: 1.5rem; }
.tab-btns {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab-btn:hover { color: var(--green); background: var(--bg3); }
.tab-btn.active {
  color: var(--green);
  background: var(--bg3);
  border-color: var(--green-dim);
  border-bottom: 2px solid var(--bg3);
  margin-bottom: -2px;
}
.tab-panel { display: none; padding: 1.4rem; background: var(--bg2); border: 1px solid var(--border); border-top: none; }
.tab-panel.active { display: block; }

/* ── CODE BLOCK ── */
.code-block {
  background: #050f07;
  border: 1px solid var(--border-green);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.8;
  color: var(--text);
}
.code-block code { background: none; border: none; padding: 0; font-size: inherit; }
.c-comment { color: #556655; }

/* ── SYSREQ TABLE ── */
.sysreq-table-wrap { overflow-x: auto; }
.sysreq-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.sysreq-table th, .sysreq-table td {
  border: 1px solid var(--border);
  padding: 9px 14px;
  text-align: left;
}
.sysreq-table thead { background: var(--bg3); }
.sysreq-table thead th { color: var(--green); font-weight: bold; }
.sysreq-table tbody tr:nth-child(even) { background: var(--bg2); }
.sysreq-table tbody tr:hover { background: rgba(0,204,68,0.05); }
.sysreq-table td { color: var(--text-dim); }

/* ── ABOUT ── */
.about-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text p { color: var(--text); font-size: 0.97rem; }
.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--border);
}
.meta-table th, .meta-table td {
  border: 1px solid var(--border);
  padding: 7px 12px;
}
.meta-table th { color: var(--text-dim); background: var(--bg2); font-weight: normal; width: 40%; }
.meta-table td { color: var(--green); }

/* ── DOWNLOAD CTA ── */
#download-cta {
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--border-green);
  border-bottom: 1px solid var(--border-green);
  padding: 3rem 1.5rem;
  max-width: 100%;
}
#download-cta h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
#download-cta p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* ── DOWNLOADS PAGE ── */
#dl-hero { padding-bottom: 1rem; }
#dl-hero h1 { font-size: 1.8rem; margin-bottom: 0.8rem; }

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg2);
  border: 1px solid var(--green-dim);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-top: 0.5rem;
}
.rb-label {
  background: var(--green-dim);
  color: #000;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: bold;
}
.rb-version { color: var(--green-bright); font-size: 1rem; font-weight: bold; }
.rb-meta { color: var(--text-dim); }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.dl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.dl-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--border);
}
.dl-card-header.deb { border-top: 4px solid #dd4444; }
.dl-card-header.rpm { border-top: 4px solid var(--amber); }
.dl-card-header.src { border-top: 4px solid var(--green); }
.dl-distro-icon { font-size: 2.2rem; line-height: 1; }
.dl-card-header h2 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-bright);
  margin: 0;
}
.dl-subtitle { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin: 0; }
.dl-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }

.dl-distros strong, .dl-install-cmd strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.35rem;
}
.dl-distros ul {
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.dl-distros ul li::before { content: "→ "; color: var(--green-dim); }

.file-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.file-meta-table th, .file-meta-table td {
  border: 1px solid var(--border);
  padding: 5px 10px;
  text-align: left;
}
.file-meta-table th { background: var(--bg3); color: var(--text-dim); font-weight: normal; width: 40%; }
.file-meta-table td { color: var(--text); }

.dl-install-cmd pre {
  background: #050f07;
  border: 1px solid var(--border-green);
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  overflow-x: auto;
  margin-top: 0.3rem;
}
.dl-install-cmd pre code { background: none; border: none; padding: 0; color: inherit; }

.btn-download {
  display: block;
  text-align: center;
  background: var(--green-dim);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: bold;
  padding: 12px;
  text-decoration: none;
  border: 2px solid var(--green);
  margin-top: auto;
  transition: background 0.15s;
}
.btn-download:hover, .btn-download:focus {
  background: var(--green-bright);
  color: #000;
  outline: none;
}

/* Verify & Help */
#verify .code-block, #help pre { margin-top: 0.5rem; }
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}
.help-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 1.2rem 1.4rem;
}
.help-card h3 { color: var(--amber); font-size: 0.88rem; margin-bottom: 0.5rem; }
.help-card pre {
  background: #050f07;
  border: 1px solid var(--border-green);
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green-bright);
  margin-bottom: 0.6rem;
  overflow-x: auto;
}
.help-card pre code { background: none; border: none; padding: 0; color: inherit; }
.help-card p { font-size: 0.85rem; color: var(--text-dim); margin: 0; }

/* ── FOOTER ── */
#footer {
  background: var(--bg2);
  border-top: 2px solid var(--green-dim);
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem;
}
.footer-col strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  display: block;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.footer-col p { font-size: 0.83rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.3rem; }
.footer-col ul li a { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); text-decoration: none; }
.footer-col ul li a:hover { color: var(--green); }
.footer-copy { font-size: 0.75rem !important; color: #555 !important; margin-top: 0.6rem !important; }
.footer-bottom {
  background: #000;
  border-top: 1px solid var(--border-green);
  text-align: center;
  padding: 8px 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ── SCROLLBAR (webkit) ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; gap: 2rem; }
  .about-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.2rem; }
}
@media (max-width: 650px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  #main-nav ul { gap: 0; }
  #main-nav a { padding: 4px 6px; font-size: 0.72rem; }
  section { padding: 2rem 1rem; }
  .ascii-divider span { font-size: 0.6rem; }
  .hero-text h1 { font-size: 1.8rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .cursor-blink { animation: none; opacity: 1; }
  .t-dots::after { animation: none; content: '...'; }
  html { scroll-behavior: auto; }
}

/* ── ADSENSE AD SLOTS ── */
.ad-slot {
  background: #080808;
  border: 1px dotted var(--border);
  min-height: 90px;
  max-width: 1100px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ad-slot::before {
  content: "ADVERTISEMENT";
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ── DISTRO SVG ICONS ── */
.dl-distro-icons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}
.dl-distro-icons svg {
  width: 32px;
  height: 32px;
  display: block;
  transition: transform 0.2s, fill 0.2s;
}
.dl-distro-icons svg:hover {
  transform: scale(1.1);
}
.icon-debian { fill: #c70039; }
.icon-ubuntu { fill: #e95420; }
.icon-fedora { fill: #3c6eb4; }
.icon-archlinux { fill: #1793d1; }
.icon-linux { fill: var(--green); }

