/* Eli Shrir home page — shared stylesheet
   Extracted verbatim from the inlined <style> block of index.html (task 0003).
   Design tokens and rules are documented in docs/specs/1-tech/3-ui.md.
   Article-page components live in articles.css. */

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --surface2: #1a2336;
  --border: #1f2d45;
  --accent: #00d4aa;
  --accent2: #0096ff;
  --text: #e2e8f0;
  --muted: #64748b;

  /* Code blocks in article bodies. The window itself (request 0010): the panel
     is lighter than the page, so it needs no outline to read as a panel. */
  --code-bg: #12171d;
  --code-text: #f1f4f8;
  --code-gutter: #83888f;
  --code-lang: #cab6f1;

  /* Token colours, sampled from the reference image in request 0010 (see
     docs/tasks/task_0010_code-token-palette.md). */
  --code-keyword: #c596e3;
  --code-name: #f1e2a4;
  --code-type: #eaa87e;
  --code-variable: #86c2e5;
  --code-literal: #f49b83;
  --code-comment: #86a47c;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Syne', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  overflow-x: hidden;
}

/* GRID BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* NOISE OVERLAY */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

/* ─── HERO ─────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-label span { color: var(--muted); }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.hero h1 .line2 {
  display: block;
  color: #ffffff;
  -webkit-text-stroke: 0;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.meta-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s, bounce 2s ease infinite 1.2s;
}

.scroll-hint svg { opacity: 0.4; }

/* ─── SECTIONS ─────────────────────────── */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ─── ABOUT ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.stat-card .num {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.1em;
}

/* ─── SKILLS ─────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-pill::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.skill-pill:hover::after { transform: scaleX(1); }

.skill-icon {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* ─── EXPERIENCE ─────────────────────────── */
.exp-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (max-width: 600px) {
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

.exp-years {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}

.exp-content h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.exp-content p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── EDUCATION ─────────────────────────── */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.edu-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.edu-card h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.edu-card p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* The "my articles" section (request 0009) reuses this card for its link out
   to /articles; the button is the only thing the card did not already have. */
.edu-card .btn-linkedin {
  margin-top: 1.25rem;
}

/* ─── CONTACT ─────────────────────────────── */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3rem;
  text-align: center;
}

.contact-box h2 {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-box p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.btn-linkedin:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ─── PAGINATION ─────────────────────────── */
/* Shared furniture: the public articles list and the admin article list use the
   same markup and classes. It lived in articles.css until the admin needed it
   too (request 0011); moving it here beat keeping two copies in step. */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-step {
  color: var(--accent);
  text-decoration: none;
  padding: 0.7rem 0;
}

.page-step:hover,
.page-step:focus-visible {
  text-decoration: underline;
}

.page-step.is-disabled {
  color: var(--border);
}

.page-numbers {
  list-style: none;
  display: flex;
  gap: 0.4rem;
}

.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-number:hover,
.page-number:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.page-number.is-current {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.empty-state {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ─── FOOTER ─────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
