/* pokerbotios.com — Apple HIG-inspired, bespoke handcrafted CSS */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #007aff;
  --accent-hover: #0062cc;
  --separator: #d2d2d7;
  --separator-soft: #e8e8ed;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  color-scheme: only light;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Top nav bar — frosted, sticky */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator-soft);
}
.topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.022em;
  color: var(--text);
  text-decoration: none;
}
.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #007aff, #5856d6);
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.011em;
  opacity: 0.88;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 980px;
  letter-spacing: -0.011em;
  transition: background 120ms ease;
}
.cta-button:hover { background: var(--accent-hover); }
.cta-button.large {
  font-size: 17px;
  padding: 12px 24px;
}

/* Layout container */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Hero card (App Store style) */
.hero {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-top: 32px;
  padding: 36px;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 28px;
  align-items: center;
}
.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  background: linear-gradient(160deg, #007aff 0%, #5856d6 55%, #af52de 100%);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero-meta h1 {
  margin: 0 0 4px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
}
.hero-meta .subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 0 14px 0;
  letter-spacing: -0.011em;
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.rating-pill {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Section cards */
section.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 22px 0;
  padding: 30px 36px;
}
section.card h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 18px 0;
  color: var(--text);
}
section.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin: 22px 0 8px 0;
  color: var(--text);
}
section.card p {
  margin: 0 0 14px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}
section.card a {
  color: var(--accent);
  text-decoration: none;
}
section.card a:hover { text-decoration: underline; }

/* "Information" key-value rows like App Store */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--separator-soft);
  font-size: 15px;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--text-secondary); }
.info-row .v { color: var(--text); text-align: right; max-width: 60%; }

/* Hero photo strip */
.photo-strip {
  margin: 26px 0 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-strip img { width: 100%; height: auto; display: block; }

/* What's New version line */
.version-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

/* "More like this" cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.related-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--separator-soft);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.related-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}
.related-card .rc-title {
  font-weight: 600;
  letter-spacing: -0.014em;
  font-size: 16px;
  margin: 0 0 4px 0;
}
.related-card .rc-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Breadcrumb */
.crumb {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 22px 0 0 0;
}
.crumb a { color: var(--text-secondary); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #f0f4ff, #f5f0ff);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-strip h3 {
  margin: 0 0 4px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.cta-strip p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Pull-quote */
blockquote.note {
  margin: 18px 0;
  padding: 18px 22px;
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
}

/* Lists in article body */
section.card ul {
  margin: 8px 0 14px 0;
  padding-left: 22px;
}
section.card ul li {
  margin: 6px 0;
  line-height: 1.55;
}

/* Footer */
footer.site-footer {
  margin-top: 50px;
  padding: 30px 0 40px 0;
  border-top: 1px solid var(--separator-soft);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}
footer.site-footer a { color: var(--text-secondary); text-decoration: none; }

/* SVG diagram styling */
.diagram {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0;
  border: 1px solid var(--separator-soft);
}

/* Mobile */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .topnav-inner { padding: 0 16px; height: 48px; gap: 10px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-links a.text-link { display: none; }
  .cta-button { padding: 6px 12px; font-size: 13px; }
  .wrap { padding: 0 16px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
    margin-top: 20px;
    gap: 18px;
  }
  .app-icon { margin: 0 auto; width: 104px; height: 104px; border-radius: 23px; font-size: 52px; }
  .hero-meta h1 { font-size: 23px; }
  .hero-row { justify-content: center; }
  section.card { padding: 22px 20px; margin: 16px 0; }
  section.card h2 { font-size: 19px; }
  .cta-strip { padding: 22px 20px; flex-direction: column; align-items: stretch; text-align: center; }
  .cta-strip .cta-button { width: 100%; }
  .hero .cta-button { width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .info-row { font-size: 14px; }
  .info-row .v { max-width: 55%; }
}

@media (prefers-color-scheme: dark) {
  /* re-assert light intent */
  :root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-alt: #fbfbfd;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
  }
  body { background: var(--bg); color: var(--text); }
  section.card { background: var(--surface); }
}
