/*
Theme Name: CryptoConnect
Theme URI: https://www.cryptocasinoconnect.com
Author: Giant Motor Cars / Cowork
Description: Sleek dark-premium directory theme for crypto casino reviews. Charcoal & gold, with a filterable casino directory grid and a structured Casino post type.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptoconnect
*/

/* ===== Design tokens ===== */
:root {
  --bg:        #0e1015;
  --bg-2:      #151821;
  --surface:   #1b1f2a;
  --surface-2: #222735;
  --line:      #2c3242;
  --text:      #e8eaf0;
  --text-dim:  #9aa1b4;
  --text-mute: #6b7283;
  --gold:      #e7b54a;
  --gold-2:    #f6cf76;
  --gold-deep: #c8902a;
  --green:     #46c98b;
  --red:       #e25c5c;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-gold: 0 6px 24px rgba(231,181,74,.18);
  --maxw:      1200px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-2); }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-dim); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #1a1407; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-1px); color: #1a1407; box-shadow: 0 10px 30px rgba(231,181,74,.3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,16,21,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  display: grid; place-items: center; color: #1a1407; font-weight: 900; font-size: 18px;
  box-shadow: var(--shadow-gold);
}
.brand .accent { color: var(--gold); }
.main-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.main-nav a { color: var(--text-dim); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(231,181,74,.10), transparent 60%),
    radial-gradient(700px 350px at 0% 0%, rgba(70,201,139,.06), transparent 55%);
}
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 14px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 620px; margin: 0 0 26px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats .stat .num { font-size: 26px; font-weight: 800; color: var(--gold); }
.hero-stats .stat .label { font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }

/* ===== Section heading ===== */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; margin: 0; }
.section-head .sub { color: var(--text-dim); font-size: 15px; margin-top: 4px; }

/* ===== Filter bar ===== */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 26px;
}
.filter-bar .f-label { font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .07em; margin-right: 4px; }
.chip {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer;
  transition: all .14s ease; user-select: none;
}
.chip:hover { color: var(--text); border-color: var(--text-mute); }
.chip.active { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1a1407; border-color: transparent; font-weight: 600; }
.filter-bar .sort { margin-left: auto; }
.filter-bar select {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 8px 12px; font-size: 14px; font-family: var(--font);
}

/* ===== Casino grid ===== */
.casino-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }

.casino-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
}
.casino-card:hover { transform: translateY(-3px); border-color: rgba(231,181,74,.45); box-shadow: var(--shadow); }
.casino-card .rank-badge {
  position: absolute; top: -10px; left: 18px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1a1407;
  font-weight: 800; font-size: 13px; padding: 3px 11px; border-radius: 999px; box-shadow: var(--shadow-gold);
}
.casino-card .cc-top { display: flex; align-items: center; gap: 13px; }
.casino-card .cc-logo {
  width: 56px; height: 56px; border-radius: 12px; flex: 0 0 56px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--gold); overflow: hidden;
}
.casino-card .cc-logo img { width: 100%; height: 100%; object-fit: cover; }
.casino-card .cc-name { font-size: 18px; font-weight: 700; margin: 0; }
.casino-card .cc-name a { color: var(--text); }
.casino-card .cc-name a:hover { color: var(--gold); }
.casino-card .cc-meta { font-size: 13px; color: var(--text-mute); margin-top: 2px; }

.rating { display: inline-flex; align-items: center; gap: 7px; }
.rating .stars { --pct: 0%; position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; }
.rating .stars::before { content: "\2605\2605\2605\2605\2605"; color: var(--line); }
.rating .stars::after { content: "\2605\2605\2605\2605\2605"; color: var(--gold); position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; white-space: nowrap; }
.rating .score { font-weight: 700; color: var(--gold); font-size: 14px; }

.bonus-box {
  background: var(--bg); border: 1px dashed rgba(231,181,74,.4);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.bonus-box .bl { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
.bonus-box .bv { font-size: 16px; font-weight: 700; color: var(--gold-2); }

.crypto-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.crypto-tags .tag { background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim); font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.casino-card .cc-actions { display: flex; gap: 9px; margin-top: auto; }
.casino-card .cc-actions .btn { flex: 1; justify-content: center; }

/* ===== Single casino review ===== */
.review-hero {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line); padding: 40px 0 30px;
}
.review-hero .rh-grid { display: grid; grid-template-columns: 88px 1fr auto; gap: 22px; align-items: center; }
.review-hero .rh-logo { width: 88px; height: 88px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--gold); overflow: hidden; }
.review-hero .rh-logo img { width: 100%; height: 100%; object-fit: cover; }
.review-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.review-hero .rh-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 14px; }
.review-hero .rh-meta b { color: var(--text); font-weight: 600; }
.review-hero .rh-cta { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.review-hero .rh-cta .score-big { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }

.review-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 40px 0; align-items: start; }
.review-body { font-size: 16.5px; color: var(--text); }
.review-body h2 { font-size: 24px; margin: 34px 0 12px; padding-top: 8px; }
.review-body h3 { font-size: 19px; margin: 24px 0 10px; color: var(--gold-2); }
.review-body p { margin: 0 0 16px; color: #d7dae4; }
.review-body ul, .review-body ol { color: #d7dae4; padding-left: 22px; }
.review-body li { margin-bottom: 7px; }
.review-body a { text-decoration: underline; text-underline-offset: 3px; }
.review-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.review-body th, .review-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.review-body th { background: var(--surface); color: var(--text); }
.review-body img { border-radius: var(--radius-sm); margin: 18px 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pc-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.pc-box h4 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.pc-box.pros h4 { color: var(--green); }
.pc-box.cons h4 { color: var(--red); }
.pc-box ul { list-style: none; padding: 0; margin: 0; }
.pc-box li { padding-left: 24px; position: relative; margin-bottom: 8px; font-size: 15px; }
.pc-box.pros li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pc-box.cons li::before { content: "\2715"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Sidebar */
.review-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h4 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); }
.sidecard-logo { display: flex; align-items: center; justify-content: center; height: 96px; margin: -2px 0 16px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sidecard-logo img { max-height: 72px; width: auto; object-fit: contain; border-radius: 8px; }
.sidecard-logo .logo-letter { font-size: 40px; font-weight: 800; color: var(--gold); }
.side-card .kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.side-card .kv:last-child { border-bottom: 0; }
.side-card .kv .k { color: var(--text-dim); }
.side-card .kv .v { color: var(--text); font-weight: 600; text-align: right; }
.side-card .btn { width: 100%; justify-content: center; }
.affiliate-note { font-size: 12px; color: var(--text-mute); margin-top: 10px; text-align: center; }

/* ===== Posts / generic ===== */
.post-body { max-width: 760px; margin: 0 auto; padding: 40px 0; font-size: 17px; color: #d7dae4; }
.post-body h1 { font-size: 34px; margin-bottom: 18px; color: var(--text); }
.post-body h2 { font-size: 24px; margin: 30px 0 12px; color: var(--text); }
.post-body a { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 30px; }
.site-footer .wrap { padding: 40px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin: 0 0 12px; }
.site-footer a { color: var(--text-dim); display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-disclaimer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; color: var(--text-mute); font-size: 13px; }
.footer-disclaimer .age { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--red); color: var(--red); border-radius: 50%; font-weight: 800; font-size: 13px; margin-right: 10px; vertical-align: middle; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-dim); }
.pagination .page-numbers.current { background: var(--gold); color: #1a1407; border-color: transparent; font-weight: 700; }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .review-sidebar .side-card { flex: 1 1 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; }
  .nav-toggle { display: block; margin-left: auto; }
  .review-hero .rh-grid { grid-template-columns: 64px 1fr; }
  .review-hero .rh-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .casino-grid { grid-template-columns: 1fr; }
}
