/* ================================================================
   SITE-WIDE STYLES — youraislopboresme-inspired light theme
   ================================================================ */

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

:root {
  --bg: #ffffff;
  --bg-elevated: #fafafa;
  --surface: #f5f5f5;
  --surface-hover: #eeeeee;
  --border: #e5e5e5;
  --border-light: #d4d4d4;
  --text: #171717;
  --text-secondary: #525252;
  --text-dim: #a3a3a3;
  --accent: #171717;
  --radius: 10px;
  --radius-sm: 6px;
  --max-w: 960px;
  --max-w-narrow: 720px;
  --max-w-wide: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text-secondary); }
strong, b { color: var(--text); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 4px;
}

/* === STICKY NAV === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* === INTRO (hero + what-is, side by side) === */
.intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.intro-left {
  position: sticky;
  top: 80px;
}

.intro-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text);
}

.intro-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.intro-right {}

.intro-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.3;
  color: var(--text);
}

.intro-right p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* === HERO (standalone, for other pages) === */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 48px;
  text-align: center;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: #333;
  color: #fff;
  transform: translateY(-1px);
}

/* === GAME FULLSCREEN (play immediately on load) === */
.game-fullscreen {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.game-fullscreen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  transform: scale(1.25);
  transform-origin: center center;
}

@media (max-width: 768px) {
  .game-fullscreen iframe {
    transform: none;
  }
}

/* === GAME EMBED (legacy / smaller embed) === */
.game-embed {
  max-width: 520px;
  margin: 0 auto 48px;
  aspect-ratio: 9/16;
  max-height: 72vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}

.game-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === SECTIONS (flowing, youraislopboresme-style) === */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.3;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.75;
}

.section ul, .section ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 18px;
}

.section li { margin-bottom: 10px; }

/* === TAGS (pill badges) === */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  transition: all 0.15s;
}

.tag:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--surface-hover);
}

/* === CARD GRID (feature cards / shame cards) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.2s;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.card-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
  font-style: italic;
}

/* === STEPS === */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--text);
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.step-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.65;
}

/* === COMPARISON TABLE === */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td { color: var(--text-secondary); }
.compare-table tr:hover td { color: var(--text); }

/* === FAQ ACCORDION === */
.faq-list { margin: 24px 0; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 600px; }

.faq-a p {
  padding-bottom: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === BLOG CARD LIST === */
.blog-section-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px 0;
  border-top: 1px solid var(--border);
}

.blog-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.blog-section-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}

.blog-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}

.blog-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: opacity 0.15s;
}

.blog-card:hover { opacity: 0.72; }

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.blog-card-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.blog-card:hover .blog-card-link { gap: 9px; }
.blog-card-link::after { content: '→'; }

.blog-view-all {
  display: inline-block;
  padding: 24px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.blog-view-all::after { content: ' →'; }

/* === ARTICLE PAGE === */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 72px;
}

.article-header { margin-bottom: 36px; }

.article-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.article-body p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.78;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li { margin-bottom: 10px; }

.article-body blockquote {
  border-left: 3px solid var(--border-light);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: italic;
}

.article-cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* === CALLOUT (CTA box, endnote) === */
.callout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.callout-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.callout-quote {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 20px;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* === BREADCRUMB === */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb span { margin: 0 6px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 36px; }
  .hero-title { font-size: 2.8rem; }
  .hero-sub { max-width: 100%; }
  .section { padding: 40px 20px; }
  .section-title { font-size: 1.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-section-header { padding: 40px 20px 0; }
  .blog-list { padding: 0 20px; }
  .blog-card-title { font-size: 1.05rem; }
  .article { padding: 36px 20px 56px; }
  .article-title { font-size: 1.5rem; }
  .article-body h2 { font-size: 1.2rem; }
  .breadcrumb { padding: 56px 20px 8px; }
  .nav-inner { padding: 10px 16px; }
  .site-nav { background: rgba(255,255,255,0.75); }

  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px;
  }
  .intro-left { position: static; }
  .intro-title { font-size: 3rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 14px;
    z-index: 99;
  }
  .nav-toggle { display: block; }
}
