/*
 * igor.css — IGORLABS shared design system
 * Extracted from audio-cat + glance pages
 */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ─── Theme tokens (light) ─── */
:root {
  --bg-page: #f5f5f5;
  --bg-poster: #ffffff;
  --bg-card: #fafafa;
  --text-primary: #222;
  --text-secondary: #888;
  --text-hint: #aaa;
  --accent: #8B2FC9;
  --accent-hover: #a04de0;
  --border: #eee;
  --shadow-poster: rgba(0,0,0,0.08);
  --footer-bg: #eeeef4;
  --footer-text: #666;
  --footer-link: #8B2FC9;
}

/* ─── Theme tokens (dark) ─── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #111118;
    --bg-poster: #1a1a24;
    --bg-card: #222230;
    --text-primary: #e8e8ec;
    --text-secondary: #888;
    --text-hint: #666;
    --accent: #b06ee6;
    --accent-hover: #c88af0;
    --border: #333;
    --shadow-poster: rgba(0,0,0,0.3);
    --footer-bg: #0d0d1a;
    --footer-text: #666;
    --footer-link: #b06ee6;
  }
}

/* ─── Reset ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Body ─── */
body {
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: 'IBM Plex Mono', monospace;
  padding: 20px;
  color: var(--text-primary);
}

/* ─── Poster (main content card) ─── */
.poster {
  width: 100%;
  max-width: 980px;
  padding: 30px 30px 20px;
  background: var(--bg-poster);
  border-radius: 12px;
  box-shadow: 0 4px 24px var(--shadow-poster);
}

/* ─── Typography ─── */
h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  text-align: center;
  font-family: 'Lilita One', 'Impact', 'Arial Black', sans-serif;
  font-size: clamp(28px, 6vw, 52px);
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

h1 svg {
  height: 1em;
  width: auto;
  flex-shrink: 0;
}

h2 {
  font-family: 'Lilita One', 'Impact', 'Arial Black', sans-serif;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

h3 {
  font-family: 'Lilita One', 'Impact', 'Arial Black', sans-serif;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.subtitle {
  text-align: center;
  font-size: clamp(11px, 2vw, 14px);
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ─── Navigation ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--accent);
  color: #fff;
}

.nav a.active {
  background: var(--accent);
  color: #fff;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ─── Content sections ─── */
.section {
  margin-bottom: 28px;
}

.section p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

.section a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ─── Bio card ─── */
.bio-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.bio-card img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.bio-card .bio-text {
  flex: 1;
}

.bio-card .bio-text h2 {
  margin-bottom: 8px;
}

.bio-card .bio-text p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.bio-card .bio-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.bio-card .bio-text a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ─── Game card ─── */
.game-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.game-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.game-card .game-images {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.game-card .game-images img {
  width: 140px;
  border-radius: 6px;
}

.game-card .game-info {
  flex: 1;
}

.game-card .game-info h3 {
  margin-bottom: 4px;
}

.game-card .game-year {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.game-card .game-info p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.game-card .game-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.game-card .game-info a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.game-card .game-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.game-card .game-links a {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.game-card .game-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── Contact form ─── */
.contact-form {
  max-width: 540px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 10px 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}

.contact-form button:hover {
  background: var(--accent-hover);
}

/* ─── Markdown body (news articles) ─── */
.markdown-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.markdown-body p {
  margin-bottom: 14px;
}

.markdown-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.markdown-body a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.markdown-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.markdown-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.markdown-body p code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 12px 0;
  padding-left: 28px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
}

/* ─── App page (squirrelwarz) ─── */
.app-hero img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.app-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.app-screenshots img {
  width: 100%;
  border-radius: 6px;
}

/* ─── Responsive images ─── */
.section img,
picture img {
  max-width: 100%;
  height: auto;
}

/* ─── Footer ─── */
.footer {
  width: 100%;
  max-width: 980px;
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--footer-bg);
  border-radius: 10px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--footer-text);
  letter-spacing: 0.5px;
}

.footer a {
  color: var(--footer-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  margin: 0 8px;
}

/* ─── Tablet (<=820px) ─── */
@media (max-width: 820px) {
  body { padding: 12px; }
  .poster { padding: 20px 16px 16px; }

  .bio-card { flex-direction: column; align-items: center; text-align: center; }
  .bio-card img { width: 140px; height: 140px; }

  .game-card { flex-direction: column; }
  .game-card .game-images { justify-content: center; }

  /* Hamburger nav */
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    border-bottom: none;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav a {
    text-align: center;
    padding: 10px 12px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child { border-bottom: none; }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    user-select: none;
  }

  .nav-toggle-label span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 500px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    content: '';
  }
}

/* ─── Phone portrait (<=480px) ─── */
@media (max-width: 480px) {
  body { padding: 0; }
  .poster { padding: 16px 12px 12px; border-radius: 0; max-width: 100%; box-shadow: none; }
  .footer { margin-top: 0; padding: 14px 12px; font-size: 11px; border-radius: 0; max-width: 100%; }

  .game-card .game-images img { width: 120px; }
  .app-screenshots { grid-template-columns: 1fr; }
}

/* ─── Very small phones (<=360px) ─── */
@media (max-width: 360px) {
  .poster { padding: 12px 8px 10px; }
  .footer { padding: 10px 8px; }
  .bio-card img { width: 120px; height: 120px; }
  .game-card .game-images img { width: 100px; }
}
