/* ============================================================
   site.css — stylesheet for the RobuxClicker.com content layer.

   Loaded by every crawlable content page (legal pages, About,
   Contact, the games hub, game landing pages, the guides hub and
   guide articles). The in-game clicker keeps its own css/style.css;
   this file styles the website built AROUND the game.

   Theme matches the game exactly: dark navy background, green
   accent (#4ee07a), shared font stack. No split-fill layouts and
   no coloured-stripe accents anywhere (CLAUDE.md rule 5). The
   document scrolls normally (unlike the game shell, which locks
   the viewport) so long articles read top-to-bottom.

   Mobile-first: the base rules below target small screens and
   stay correct at 390px wide (iPhone 13). The min-width media
   query near the end scales typography and spacing up for
   tablets and desktops.
   ============================================================ */

/* ---------- 1. RESET ---------- */
/* Same zero-margin, border-box reset the game stylesheet uses, so
   padding never pushes an element past 100% of its container and
   nothing can cause horizontal overflow on a 390px screen. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- 2. BASE PAGE ---------- */
/* Unlike css/style.css (which sets height:100% + overflow:hidden to
   lock the game to one viewport), content pages scroll normally.
   overflow-x is clipped purely as a safety net against accidental
   overflow — vertical scrolling is untouched. */
html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  /* Identical dark navy + radial vignette as the game shell, so the
     content pages read as the same product as the clicker. */
  background: #0a0a14;
  background-image:
    radial-gradient(circle at 50% 40%, #15152e 0%, #0a0a14 70%);
  background-attachment: fixed;
  color: #ddd;
  font-family: 'Segoe UI', 'Roboto', 'Courier New', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* Long words and bare URLs (common on legal pages) wrap instead of
     forcing the page wider than the viewport. */
  overflow-wrap: break-word;
  /* Layout column: header at top, main grows, footer pinned below. */
  display: flex;
  flex-direction: column;
}

/* Keyboard focus is always visible in the brand green, for
   accessibility — links and buttons never lose their focus ring. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #4ee07a;
  outline-offset: 2px;
}

/* ---------- 3. SITE HEADER / PRIMARY NAV ---------- */
/* Sticky top bar carried by every page. The wordmark links home;
   the nav links cover the whole site. The current page marks its
   own link with the .active class (weight + accent colour only —
   never a coloured stripe, per CLAUDE.md rule 5). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0e0e1f;
  border-bottom: 1px solid #2a2a4e;
}

/* Centred inner row; wraps onto a second line on very narrow phones. */
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
}

/* Brand wordmark — the only place the site name appears in the
   header. Green to lead with a strong, consistent identity. */
.site-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: #4ee07a;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.site-wordmark:hover {
  color: #7dff9f;
}

/* Horizontal link list; wraps gracefully if it ever runs out of room. */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

/* Each nav link is padded to about a 40px tap target for mobile. */
.site-nav a {
  display: inline-block;
  padding: 9px 12px;
  color: #c0c0d8;
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: 6px;
}
.site-nav a:hover {
  color: #fff;
  background: #1a1a30;
}

/* Active page: brand green + bold. No background, no side stripe —
   weight and colour alone signal "you are here". */
.site-nav a.active {
  color: #4ee07a;
  font-weight: 700;
}

/* ---------- 4. MAIN READING COLUMN ---------- */
/* Centred, comfortably narrow column so article lines stay readable.
   flex:1 pushes the footer to the bottom on short pages. */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 18px 8px;
  line-height: 1.7;
}

/* ---------- 5. ARTICLE TYPOGRAPHY ---------- */
/* Headings, paragraphs, lists, links, code and quotes for the prose
   body of every content page. One real <h1> per page is the rule;
   <h2>/<h3> form the outline beneath it. */
.site-main h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
}
.site-main h2 {
  font-size: 1.3rem;
  color: #fff;
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1f1f3a;
}
.site-main h3 {
  font-size: 1.08rem;
  color: #4ee07a;
  margin: 22px 0 8px;
}
.site-main p {
  margin: 0 0 16px;
  color: #ddd;
}

/* "Lead" paragraph: a slightly larger, lighter intro sentence used
   directly under an <h1> or inside a hero. */
.site-main .lead {
  font-size: 1.08rem;
  color: #c0c0d8;
}

/* Small muted line — used for "Last updated" dates and fine print. */
.site-main .page-meta,
.muted {
  color: #8888aa;
  font-size: 0.85rem;
}

.site-main ul,
.site-main ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #ddd;
}
.site-main li {
  margin-bottom: 6px;
}

/* In-text links: green, underlined for clear affordance in prose. */
.site-main a {
  color: #4ee07a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-main a:hover {
  color: #7dff9f;
}

/* Inline code / key names — boxed, monospace, never a coloured stripe. */
.site-main code {
  background: #15152e;
  border: 1px solid #1f1f3a;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.92em;
  color: #c0c0d8;
}

/* Quote block — a full evenly-bordered panel. Deliberately NOT a
   left-stripe blockquote, which CLAUDE.md rule 5 bans. */
.site-main blockquote {
  background: #0e0e1f;
  border: 1px solid #2a2a4e;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 18px;
  color: #c0c0d8;
  font-style: italic;
}

/* ---------- 6. BREADCRUMB ---------- */
/* Thin trail row (Home / Games / This page) used on landing pages
   and articles so a visitor — and a crawler — sees the hierarchy. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #8888aa;
  margin-bottom: 16px;
}
.breadcrumb a {
  color: #8888aa;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #4ee07a;
}
/* The "/" divider between crumbs — dimmer than the links. */
.breadcrumb .breadcrumb-sep {
  color: #44445e;
}

/* ---------- 7. HERO BLOCK ---------- */
/* Intro panel at the top of hub pages and landing pages. A single
   evenly-bordered panel — no half-coloured split-fill. */
.hero {
  background: #0e0e1f;
  border: 1px solid #2a2a4e;
  border-radius: 12px;
  padding: 26px 22px;
  margin-bottom: 26px;
  text-align: center;
}
.hero h1 {
  margin-bottom: 10px;
}
.hero p {
  color: #c0c0d8;
  margin-bottom: 0;
}
/* Spacing for a button (or button row) placed inside a hero. */
.hero .btn,
.hero .btn-row {
  margin-top: 18px;
}

/* ---------- 8. BUTTONS ---------- */
/* Shared button styles. .btn is the neutral variant; .btn-primary is
   the green call-to-action (e.g. "Play"). Works as <a> or <button>. */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid #2a2a4e;
  background: #1a1a30;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover {
  background: #222244;
  border-color: #3a3a5e;
}

/* Primary call-to-action — solid brand green with dark text. */
.btn-primary {
  background: #4ee07a;
  border-color: #4ee07a;
  color: #06210f;
}
.btn-primary:hover {
  background: #7dff9f;
  border-color: #7dff9f;
  color: #06210f;
}

/* Row of buttons that wraps on narrow screens. */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 9. CARD GRID ---------- */
/* Responsive grid of cards for the games hub and the guides hub.
   One column on phones, two columns once there is room. */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0 28px;
}

/* A single card: an optional gradient "tile" header above a text
   body. Both areas are dark navy tones — this is a normal card, not
   a split-fill layout. */
.card {
  display: flex;
  flex-direction: column;
  background: #0e0e1f;
  border: 1px solid #2a2a4e;
  border-radius: 10px;
  overflow: hidden;
}
.card:hover {
  border-color: #4ee07a;
}

/* Tile header — a subtle on-brand gradient that hosts one inline SVG
   genre glyph. No photos, no screenshots, no emoji. */
.card-tile {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #15152e 0%, #1f1f3a 100%);
  border-bottom: 1px solid #2a2a4e;
}
.card-tile svg {
  width: 46px;
  height: 46px;
}

/* Text body of the card — grows to equal height across the row. */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
/* Small uppercase genre / category label. */
.card-genre {
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8888aa;
}
.card-text {
  flex: 1;
  font-size: 0.9rem;
  color: #c0c0d8;
}
/* A button inside a card hugs the left edge under the text. */
.card .btn {
  align-self: flex-start;
  margin-top: 4px;
}
/* When the whole card is a link, keep the title readable (no
   underline) and let the border-glow hover stand in as affordance. */
a.card {
  text-decoration: none;
}

/* ---------- 10. RELATED / CROSS-LINK BLOCK ---------- */
/* "More guides" / "More arcade games" panel that closes most pages.
   A plain bordered panel — supports the generous cross-linking the
   content plan requires. */
.related {
  background: #0e0e1f;
  border: 1px solid #2a2a4e;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 28px 0;
}
.related h2 {
  margin-top: 0;
  border-bottom: none;
}
.related ul {
  margin-bottom: 0;
}

/* ---------- 11. FAQ ---------- */
/* Question-and-answer list used on landing pages and guides. Each
   item is an evenly-bordered panel; the question is distinguished by
   weight and colour, not by a coloured side stripe. */
.faq {
  margin: 18px 0 28px;
}
.faq-item {
  background: #0e0e1f;
  border: 1px solid #2a2a4e;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.faq-q {
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.faq-a {
  color: #c0c0d8;
}
.faq-a:last-child {
  margin-bottom: 0;
}

/* ---------- 12. SITE FOOTER ---------- */
/* Shared footer on every page: the four legal links, the permanent
   trademark / not-affiliated disclaimer, and a copyright line.
   margin-top:auto (with the body flex column) keeps it at the
   bottom even on very short pages. */
.site-footer {
  margin-top: 48px;
  background: #0e0e1f;
  border-top: 1px solid #2a2a4e;
  padding: 26px 16px;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Legal links row — centred, wraps on narrow phones. */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
  margin-bottom: 14px;
}
.footer-links a {
  display: inline-block;
  padding: 8px 12px;
  color: #c0c0d8;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
}
.footer-links a:hover {
  color: #4ee07a;
  background: #1a1a30;
}

/* The permanent trademark-safety disclaimer — must always be legible. */
.footer-disclaimer-text {
  color: #8888aa;
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 10px;
}
/* Copyright line — the dimmest text on the page. */
.footer-copyright {
  color: #66667e;
  font-size: 0.8rem;
}

/* ---------- 13. LARGER SCREENS ---------- */
/* Mobile-first base above; this query scales typography and the card
   grid up once there is room. Below 600px everything stays single
   column and the base sizes apply — correct at 390px wide. */
@media (min-width: 600px) {
  /* Two-column card grid on tablets and desktops. */
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  /* Roomier reading column and larger headings on desktop. */
  .site-main {
    padding: 32px 24px 8px;
  }
  .site-main h1,
  .hero h1 {
    font-size: 2.1rem;
  }
  .site-main h2 {
    font-size: 1.45rem;
  }
  .site-main h3 {
    font-size: 1.15rem;
  }
  .hero {
    padding: 36px 32px;
  }
}
