/*
Theme Name: RH Theme
Description: Casino review theme: review template, comparison template, guides and news. Monochrome edition.
Version: 0.3.0
Author: PlayerLab
Text Domain: rh-theme
*/

:root {
  /* 黑白极简：白底、黑字、黑色按钮、灰阶层次 */
  --rh-black: #0a0a0a;
  --rh-ink: #171717;
  --rh-text: #1a1a1a;
  --rh-muted: #737373;
  --rh-faint: #a3a3a3;
  --rh-line: #e5e5e5;
  --rh-bg: #ffffff;
  --rh-panel: #fafafa;
  --rh-good: #171717;
  --rh-bad: #737373;
  --rh-radius: 12px;
  --rh-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  color: var(--rh-text);
  background: var(--rh-bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--rh-black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.rh-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 18+ notice bar */
.rh-agebar { background: #f5f5f5; color: #8a8a8a; font-size: 12px; text-align: center; padding: 6px 12px; }

/* Header：白底黑字，Logo 左 · 菜单居中 · 公司按钮右 */
.rh-header { background: #fff; border-bottom: 1px solid var(--rh-black); position: sticky; top: 0; z-index: 40; }
.rh-header-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; min-height: 64px;
}
.rh-logo { font-size: 22px; font-weight: 800; letter-spacing: .3px; justify-self: start; color: var(--rh-black); text-decoration: none; }
.rh-logo span { border-bottom: 3px solid var(--rh-black); }
.rh-nav { justify-self: center; display: flex; gap: 28px; }
.rh-nav a { color: #404040; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.rh-nav a:hover { color: var(--rh-black); text-decoration: underline; text-underline-offset: 6px; }
.rh-company-btn {
  justify-self: end; white-space: nowrap; text-decoration: none;
  background: var(--rh-black); color: #fff;
  padding: 9px 22px; border-radius: 99px; font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--rh-black);
  transition: background .15s, color .15s;
}
.rh-company-btn:hover { background: #fff; color: var(--rh-black); text-decoration: none; }
@media (max-width: 820px) {
  .rh-header-grid { grid-template-columns: 1fr auto; }
  .rh-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; padding-bottom: 12px; flex-wrap: wrap; gap: 16px; }
}

/* Layout */
.rh-main { padding: 36px 0 64px; }
.rh-title { font-size: 32px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.3px; }
.rh-meta-line { color: var(--rh-muted); font-size: 14px; margin-bottom: 24px; }
.rh-card {
  background: #fff; border: 1px solid var(--rh-line); border-radius: var(--rh-radius);
  padding: 24px; margin-bottom: 24px; box-shadow: var(--rh-shadow);
}

/* Breadcrumb */
.rh-breadcrumb { font-size: 13px; color: var(--rh-muted); margin-bottom: 16px; }
.rh-breadcrumb a { text-decoration: none; color: var(--rh-muted); }
.rh-breadcrumb a:hover { color: var(--rh-black); text-decoration: underline; }
.rh-breadcrumb span { margin: 0 6px; color: #d4d4d4; }
.rh-breadcrumb strong { color: var(--rh-black); font-weight: 600; }

/* Hero：纯黑块 */
.rh-hero {
  background: var(--rh-black);
  color: #fff; border-radius: 16px; padding: 30px;
  display: flex; justify-content: space-between; gap: 28px; align-items: center;
  flex-wrap: wrap; margin-bottom: 24px;
}
.rh-hero .rh-title { color: #fff; font-size: 28px; margin: 0; }
.rh-hero-main { display: flex; gap: 20px; align-items: center; flex: 1; min-width: 280px; }
.rh-hero-logo {
  width: 84px; height: 84px; border-radius: 16px; flex: none;
  background: #fff; color: var(--rh-black);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 36px; font-weight: 800;
}
.rh-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.rh-hero-rating { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 20px; }
.rh-hero-rating .of { color: #a3a3a3; font-size: 14px; }
.rh-hero-offer {
  background: #fff; color: var(--rh-black);
  border-radius: var(--rh-radius); padding: 18px 22px; text-align: center; min-width: 240px;
}
.rh-bonus-label { font-size: 11px; letter-spacing: 2px; color: var(--rh-muted); font-weight: 800; }
.rh-bonus-text { font-size: 17px; font-weight: 800; margin: 6px 0 12px; line-height: 1.4; }
.rh-cta-note { font-size: 11px; color: var(--rh-faint); margin-top: 8px; }

/* CTA 按钮：黑底白字，hover 反色 */
.rh-cta {
  display: inline-block; background: var(--rh-black); color: #fff;
  font-weight: 800; padding: 12px 30px; border-radius: 99px; text-decoration: none;
  border: 1.5px solid var(--rh-black);
  transition: background .15s, color .15s;
}
.rh-cta:hover { background: #fff; color: var(--rh-black); text-decoration: none; }
.rh-hero-offer .rh-cta:hover { border-color: var(--rh-black); }

/* Stars：黑星 */
.rh-stars { letter-spacing: 2px; font-size: 18px; }
.rh-hero .rh-stars .s-full { color: #fff; }
.rh-hero .rh-stars .s-half { color: #fff; opacity: .55; }
.rh-hero .rh-stars .s-empty { color: rgba(255,255,255,.25); }
.rh-stars .s-full { color: var(--rh-black); }
.rh-stars .s-half { color: var(--rh-black); opacity: .45; }
.rh-stars .s-empty { color: #d4d4d4; }
.rh-score-badge .rh-stars { display: block; margin-top: 8px; font-size: 14px; }
.rh-score-badge .rh-stars .s-full { color: #fff; }
.rh-score-badge .rh-stars .s-half { color: #fff; opacity: .55; }
.rh-score-badge .rh-stars .s-empty { color: rgba(255,255,255,.25); }

/* Rating card */
.rh-rating-card { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.rh-score-badge {
  min-width: 120px; text-align: center; background: var(--rh-black); color: #fff;
  border-radius: var(--rh-radius); padding: 18px 16px;
}
.rh-score-badge .num { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.rh-score-badge .of { font-size: 13px; color: #a3a3a3; margin-top: 4px; }
.rh-score-rows { flex: 1; min-width: 260px; }
.rh-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.rh-score-row .lbl { width: 140px; color: var(--rh-muted); }
.rh-bar { flex: 1; height: 8px; background: #ededed; border-radius: 99px; overflow: hidden; }
.rh-bar i { display: block; height: 100%; background: var(--rh-black); border-radius: 99px; }
.rh-score-row .val { width: 36px; text-align: right; font-weight: 700; }
.rh-verdict {
  margin-top: 12px; padding: 12px 16px; background: var(--rh-panel);
  border-left: 3px solid var(--rh-black); border-radius: 0 8px 8px 0; font-size: 15px;
}

/* TOC */
.rh-toc { background: var(--rh-panel); }
.rh-toc-title { font-weight: 800; margin-bottom: 8px; text-transform: uppercase; font-size: 13px; letter-spacing: 1.5px; }
.rh-toc ol { margin: 0; padding-left: 22px; columns: 2; gap: 32px; }
.rh-toc li { margin: 4px 0; break-inside: avoid; }
.rh-toc a { text-decoration: none; color: #404040; }
.rh-toc a:hover { color: var(--rh-black); text-decoration: underline; }
@media (max-width: 640px) { .rh-toc ol { columns: 1; } }

/* Card section heading */
.rh-card-h { margin: 0 0 14px; font-size: 20px; padding-left: 12px; border-left: 3px solid var(--rh-black); }
.rh-content h2 { padding-left: 12px; border-left: 3px solid var(--rh-black); font-size: 24px; margin-top: 36px; }
.rh-content h3 { font-size: 19px; }

/* Facts table */
.rh-facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.rh-facts th, .rh-facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rh-line); vertical-align: top; }
.rh-facts th { width: 160px; color: var(--rh-muted); font-weight: 500; white-space: nowrap; }
.rh-facts tr:nth-child(odd) { background: var(--rh-panel); }
.rh-facts tr:last-child th, .rh-facts tr:last-child td { border-bottom: 0; }

/* Pros / cons */
.rh-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rh-proscons ul { margin: 8px 0 0; padding-left: 20px; }
.rh-proscons h3 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.rh-pros h3 { color: var(--rh-black); }
.rh-cons h3 { color: var(--rh-muted); }
.rh-cons ul { color: var(--rh-muted); }
@media (max-width: 640px) { .rh-proscons { grid-template-columns: 1fr; } }

/* FAQ */
.rh-faq details { border-bottom: 1px solid var(--rh-line); padding: 12px 0; }
.rh-faq details:last-child { border-bottom: 0; }
.rh-faq summary { cursor: pointer; font-weight: 600; }
.rh-faq summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.rh-faq p { margin: 8px 0 0; color: var(--rh-muted); }

/* Compare table */
.rh-compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rh-compare-table th, .rh-compare-table td { padding: 12px; border: 1px solid var(--rh-line); text-align: center; }
.rh-compare-table td:first-child { text-align: left; color: var(--rh-muted); width: 150px; }
.rh-compare-table thead th { background: var(--rh-black); color: #fff; font-size: 16px; }
.rh-compare-table thead a { color: #fff; }
.rh-compare-table .win { font-weight: 800; }
.rh-compare-table .win::after { content: " ✓"; }

/* Author box */
.rh-author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--rh-panel); }
.rh-author-box img { border-radius: 50%; flex: none; filter: grayscale(1); }
.rh-author-name { font-weight: 800; margin-bottom: 4px; }
.rh-author-box p { margin: 0; color: var(--rh-muted); font-size: 14px; }

/* Archive cards */
.rh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.rh-post-card {
  background: #fff; border: 1px solid var(--rh-line); border-radius: var(--rh-radius);
  padding: 20px; display: flex; flex-direction: column;
  box-shadow: var(--rh-shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.rh-post-card:hover { border-color: var(--rh-black); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.rh-post-card h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
.rh-post-card h2 a { color: var(--rh-black); text-decoration: none; }
.rh-post-card h2 a:hover { text-decoration: underline; }
.rh-post-card .rh-excerpt { color: var(--rh-muted); font-size: 14px; flex: 1; }
.rh-post-card .rh-mini-score { font-weight: 800; color: var(--rh-black); margin-bottom: 6px; }

/* Section headings */
.rh-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 16px; }
.rh-section-head h2 { font-size: 22px; margin: 0; letter-spacing: -.3px; }
.rh-section-head a { font-size: 14px; font-weight: 600; }

/* Home hero：黑块 */
.rh-home-hero {
  background: var(--rh-black);
  color: #fff; border-radius: 16px; padding: 44px 34px; margin-bottom: 8px;
}
.rh-home-hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.3px; }
.rh-home-hero h1 em { font-style: normal; border-bottom: 3px solid #fff; }
.rh-home-hero p { margin: 0; color: #a3a3a3; max-width: 640px; }

/* Sticky CTA (mobile) */
.rh-sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; color: var(--rh-text); padding: 10px 16px;
  justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--rh-black); box-shadow: 0 -6px 24px rgba(0,0,0,.08);
}
.rh-sticky-cta .rh-cta { margin: 0; padding: 10px 22px; }
.rh-sticky-info { display: flex; flex-direction: column; font-size: 13px; }
.rh-sticky-info span { color: var(--rh-black); font-weight: 700; }
@media (max-width: 768px) {
  .rh-sticky-cta { display: flex; }
  body.single-casino { padding-bottom: 64px; }
}

/* Footer：黑底 */
.rh-footer { background: var(--rh-black); color: #a3a3a3; font-size: 13px; margin-top: 48px; }
.rh-footer .rh-wrap { padding-top: 32px; padding-bottom: 32px; }
.rh-footer a { color: #e5e5e5; }
.rh-disclaimer { border-top: 1px solid #2e2e2e; margin-top: 16px; padding-top: 16px; line-height: 1.8; }

/* Pagination */
.rh-pagination { margin-top: 32px; text-align: center; }
.rh-pagination .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--rh-line); border-radius: 8px; margin: 0 3px; background: #fff; text-decoration: none; }
.rh-pagination .current { background: var(--rh-black); color: #fff; border-color: var(--rh-black); }
