/*
Theme Name: Casino Insider Hub
Author: OpenClaw
Description: Magazine-style WordPress theme for casino affiliate news, reviews, bonus guides, poker, sports betting, and responsible gambling content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: casino-insider-hub
*/

:root {
  --ink: #171923;
  --muted: #657086;
  --line: #e1e6ef;
  --panel: #ffffff;
  --paper: #f6f8fb;
  --red: #c82333;
  --red-dark: #9d1826;
  --gold: #d9a425;
  --green: #147e54;
  --dark: #111722;
  --shadow: 0 16px 34px rgba(17, 23, 34, 0.1);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.top-bar { background: var(--dark); color: #fff; font-size: 13px; font-weight: 800; }
.top-bar .container { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.top-bar span:last-child { color: #ffd96f; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; }
.brand-mark { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--red), #1b202c); box-shadow: 0 12px 24px rgba(200,35,51,.24); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { color: var(--red); font-size: 22px; letter-spacing: .02em; }
.brand-text span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.primary-menu { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 850; }
.primary-menu a:hover { color: var(--red); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }

.btn, .wp-block-button__link, .comment-reply-link, .submit { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; border-radius: var(--radius); border: 1px solid transparent; background: var(--red); color: #fff; font-weight: 950; text-align: center; cursor: pointer; box-shadow: 0 12px 24px rgba(200,35,51,.22); }
.btn:hover, .wp-block-button__link:hover, .comment-reply-link:hover, .submit:hover { background: var(--red-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--red-dark); border-color: var(--line); box-shadow: none; }

.hero { color: #fff; background: linear-gradient(90deg, rgba(17,23,34,.92), rgba(17,23,34,.62)), url("assets/hero-casino.svg") center/cover; }
.hero .container { min-height: 520px; display: grid; grid-template-columns: minmax(0,.95fr) minmax(320px,.58fr); gap: 36px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.eyebrow { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: 13px; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 18px 0; max-width: 760px; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: 0; }
.hero-copy { max-width: 680px; color: rgba(255,255,255,.86); font-size: 19px; }
.hero-actions, .section-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-card { border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.13); box-shadow: var(--shadow); backdrop-filter: blur(14px); overflow: hidden; }
.hero-card-header { padding: 18px 20px; background: linear-gradient(135deg, var(--red), #7a101a); font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.hero-list { display: grid; gap: 13px; margin: 0; padding: 20px; list-style: none; }
.hero-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); font-weight: 760; }
.check { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; flex: 0 0 auto; margin-top: 2px; }

section { padding: 66px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.section-head p { max-width: 680px; color: var(--muted); margin-bottom: 0; font-size: 17px; }
.category-strip { padding: 18px 0; background: #fff; border-bottom: 1px solid var(--line); }
.category-links { display: flex; gap: 10px; overflow-x: auto; flex-wrap: wrap; }
.category-links a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 900; }
.category-links a:hover { color: var(--red); border-color: rgba(200,35,51,.34); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.post-card-image { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2a3140, #65141d); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 19px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.post-meta a { color: var(--red); }
.post-card h2, .post-card h3 { margin-bottom: 10px; line-height: 1.18; }
.post-card p { color: var(--muted); margin-bottom: 0; }
.read-more { display: inline-flex; margin-top: 14px; color: var(--red-dark); font-weight: 950; }
.featured-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.72fr); gap: 20px; }
.featured-main .post-card-image { aspect-ratio: 16 / 8.5; }
.featured-main h2 { font-size: clamp(28px, 4vw, 44px); }
.stack, .sidebar { display: grid; gap: 18px; }
.affiliate-box { margin: 28px 0; padding: 22px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--dark), #3a1720); }
.affiliate-box strong { display: block; margin-bottom: 8px; color: #ffd96f; font-size: 22px; line-height: 1.15; }
.affiliate-box p { color: rgba(255,255,255,.78); }
.widget, .sidebar-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 28px rgba(17,23,34,.07); }
.widget h2, .sidebar-card h3 { margin-bottom: 12px; font-size: 20px; }
.widget ul { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: var(--muted); }
.entry { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.entry-header h1 { margin-bottom: 12px; color: var(--ink); font-size: clamp(34px, 5vw, 58px); }
.entry-content { color: #2d3341; font-size: 18px; }
.entry-content a { color: var(--red-dark); font-weight: 800; text-decoration: underline; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 24px 0; padding: 18px 20px; border-left: 5px solid var(--gold); background: #fff8e2; color: #4f3d0e; }
.entry-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.disclosure { padding: 18px 0; background: #fff8e2; color: #4c3c10; border-top: 1px solid #f0dda4; border-bottom: 1px solid #f0dda4; font-size: 14px; font-weight: 760; }
.site-footer { padding: 42px 0; background: var(--dark); color: #dce2ec; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; font-weight: 850; }
.site-footer a { color: #fff; }

@media (max-width: 940px) {
  .menu-toggle { display: grid; place-items: center; }
  .primary-menu { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .primary-menu a { display: block; padding: 12px 0; }
  .site-header.menu-open .primary-menu { display: flex; }
  .hero .container, .featured-layout, .content-grid, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .top-bar .container { display: block; padding: 8px 0; }
  .site-nav { min-height: 68px; }
  .primary-menu { top: 68px; }
  .brand-text strong { font-size: 19px; }
  .hero .container { min-height: auto; padding-top: 44px; padding-bottom: 44px; }
  h1 { font-size: 40px; }
  .hero-copy, .entry-content { font-size: 16px; }
  section { padding: 48px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .hero-actions .btn, .section-actions .btn { width: 100%; }
  .entry { padding: 20px; }
}
