/* ============================================================
   style.css — shared styles for tristepin222.github.io
   ============================================================ */

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

:root {
  --bg: #0a0c10;
  --bg-card: #0f1117;
  --bg-card-hover: #151820;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(220,50,50,0.45);
  --accent: #e04545;
  --accent-dim: rgba(220,50,50,0.15);
  --accent2: #ff7043;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --tag-bg: rgba(220,50,50,0.12);
  --tag-text: #f09090;
  --green: #4ade80;
  --green-dim: rgba(34,197,94,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* Background grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(220,50,50,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,50,50,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(12px);
}

nav .inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--text); }
.nav-back svg { width: 16px; height: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(220,50,50,0.3);
}

.btn-primary:hover {
  background: #e85d5d;
  box-shadow: 0 0 32px rgba(220,50,50,0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-subtle);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--accent-dim);
}

.btn-steam {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
}

.btn-steam:hover {
  background: rgba(34,197,94,0.2);
  transform: translateY(-1px);
}

/* ── Section label ── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Divider ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Tags ── */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid rgba(220,50,50,0.18);
  border-radius: 6px;
  padding: 3px 10px;
}

/* ── Status badges ── */
.status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.status-wip {
  background: rgba(255,180,0,0.12);
  color: #fbbf24;
  border: 1px solid rgba(255,180,0,0.2);
}

.status-completed {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}

/* ── Page body (project sub-pages) ── */
.page-body { padding: 64px 0 100px; }

.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
}

/* ── Prose ── */
.prose section { margin-bottom: 52px; }

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.prose p {
  color: var(--text-subtle);
  font-size: 0.975rem;
  margin-bottom: 14px;
}

.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.feature-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(220,50,50,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feature-desc {
  color: var(--text-subtle);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Callout ── */
.callout {
  border-left: 3px solid var(--accent);
  background: rgba(220,50,50,0.06);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.callout p {
  font-size: 0.925rem;
  color: var(--text-subtle);
  margin: 0;
}

.callout strong { color: var(--text); }

.callout-steam {
  border-left-color: var(--green);
  background: var(--green-dim);
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 76px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.sidebar-stat:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-stat .label { color: var(--text-muted); }

.sidebar-stat .value {
  font-weight: 600;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.sidebar-stat .value.green { color: var(--green); }

/* ── Banner shared ── */
.banner-label .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--tag-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.85;
}

.banner-label h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.banner-label h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

footer p { font-size: 0.85rem; color: var(--text-muted); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
