/*
Theme Name: Croupier Domains
Theme URI: https://croupierdomains.com
Author: Winitbacksports LLC
Description: Premium gambling-niche domain marketplace theme. Domain inventory with filters, make-offer forms, Buy Now links, and a REST API the domain finder bot can post to.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: croupier
*/

:root {
  /* Brand palette — matched to the Croupier Domains logo */
  --felt-900: #062019;
  --felt-800: #0a2a22;
  --felt-700: #0f372d;
  --felt-600: #113f33;
  --line: rgba(248, 243, 231, 0.11);
  --line-strong: rgba(216, 180, 106, 0.45);
  --brass: #d8b46a;
  --brass-hi: #ead08f;
  --cream: #f8f3e7;
  --muted: #a7b8ae;
  --red: #c0463f;
  --ok: #5cbf8a;
  --radius: 14px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
}

@font-face { font-family: "DM Serif Display"; src: url("assets/fonts/dm-serif-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("assets/fonts/dm-serif-display-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--felt-900);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(216,180,106,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(17,63,51,0.55), transparent 70%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--brass-hi); text-decoration: none; }
a:hover { color: var(--cream); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #1a1407; }
.btn-brass:hover { color: #1a1407; filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--brass-hi); color: var(--brass-hi); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 32, 25, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand-mark { width: 42px; height: 42px; flex: none; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); transition: transform .4s ease; }
.brand:hover .brand-mark { transform: rotate(-20deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: -0.005em; }
.brand-name span { color: var(--brass); }
.brand-tag { font-size: .62rem; letter-spacing: .24em; color: var(--muted); margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line-strong); }
.custom-logo { max-height: 44px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--cream); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle svg { display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--felt-800); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-copy { text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  color: var(--brass); border: 1px solid var(--line-strong); border-radius: 999px; padding: .4em 1em; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(92,191,138,.2); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); max-width: 13ch; margin: 0 0 .35em; }
.hero h1 em { font-style: italic; color: var(--brass-hi); }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 50ch; margin: 0 0 30px; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: end; }
.hero-art::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(216,180,106,.28), rgba(17,63,51,.55) 45%, transparent 70%);
}
.hero-art::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(216,180,106,.35);
  animation: croupier-spin 90s linear infinite;
}
.hero-art img { position: relative; z-index: 1; width: 84%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
@keyframes croupier-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art::after { animation: none; } .brand:hover .brand-mark { transform: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; max-width: 260px; justify-self: center; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-sub { margin-left: auto; margin-right: auto; }
}
.hero-search {
  display: flex; gap: 8px; max-width: 560px; margin: 0; padding: 8px;
  background: var(--felt-800); border: 1px solid var(--line-strong); border-radius: 999px;
}
.hero-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--cream);
  font-family: var(--sans); font-size: 1rem; padding: 0 16px;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-tags { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-search { margin: 0 auto; } .hero-tags { justify-content: center; } }
.hero-tags a { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .3em .9em; }
.hero-tags a:hover { color: var(--cream); border-color: var(--line-strong); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin: 24px 0 64px; overflow: hidden; }
.stat { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--mono); font-size: 1.6rem; color: var(--brass-hi); display: block; }
.stat-label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-bottom: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0; }
.section-head p { color: var(--muted); margin: .3em 0 0; }

/* ---------- Domain cards ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.domain-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--felt-700), var(--felt-800));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.domain-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.domain-card.is-sold { opacity: .55; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.domain-name {
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--cream);
  word-break: break-word; margin: 0;
}
.domain-name a { color: inherit; }
.domain-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.domain-name .tld { color: var(--brass); }
.badge {
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  border-radius: 999px; padding: .25em .7em; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge-available { color: var(--ok); border-color: rgba(79,174,124,.4); }
.badge-pending { color: var(--brass-hi); border-color: var(--line-strong); }
.badge-sold { color: var(--red); border-color: rgba(192,70,63,.45); }
.badge-featured { background: var(--red); border-color: var(--red); color: #fff; }
.card-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.card-meta span { display: inline-flex; gap: 4px; }
.card-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { font-family: var(--mono); font-size: 1.25rem; color: var(--brass-hi); }
.price small { display: block; font-family: var(--sans); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card-cta { position: relative; z-index: 2; font-size: .85rem; font-weight: 700; }

/* ---------- Filters ---------- */
.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 10px;
  background: var(--felt-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 24px;
}
.filters label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.field, .filters input, .filters select, .offer-form input, .offer-form textarea {
  width: 100%; background: var(--felt-900); border: 1px solid var(--line); border-radius: 10px;
  color: var(--cream); font-family: var(--sans); font-size: 16px; padding: 10px 12px;
}
.filters input:focus, .filters select:focus, .offer-form input:focus, .offer-form textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: transparent; }
.filters .btn { align-self: end; height: 44px; }
@media (max-width: 960px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: 1 / -1; } .filters .btn { grid-column: 1 / -1; } }
.results-count { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 3px dashed var(--brass); color: var(--brass-hi); font-family: var(--mono); font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 6px); padding: 44px 28px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(216,180,106,.14), transparent 70%), var(--felt-800);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Single domain ---------- */
.domain-hero { padding: 56px 0 32px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.domain-title { font-size: clamp(2.2rem, 7vw, 4.6rem); word-break: break-word; margin-bottom: .2em; }
.domain-title .tld { color: var(--brass); }
.domain-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; padding-bottom: 72px; }
@media (max-width: 900px) { .domain-layout { grid-template-columns: 1fr; } .domain-layout > aside { order: -1; } .buy-panel { position: static; } }
.panel { background: var(--felt-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2, .panel h3 { font-size: 1.4rem; }
.buy-panel { border-color: var(--line-strong); position: sticky; top: 88px; }
.buy-price { font-family: var(--mono); font-size: 2.2rem; color: var(--brass-hi); line-height: 1; margin-bottom: 4px; }
.buy-note { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; margin: 0; }
.facts div { background: var(--felt-800); padding: 14px 16px; }
.facts dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font-family: var(--mono); font-size: 1.05rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust-list li { display: flex; gap: 10px; color: var(--muted); }
.trust-list li::before { content: "♠"; color: var(--brass); }
.offer-form .row { margin-bottom: 12px; }
.offer-form label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.offer-form .hp { position: absolute; left: -9999px; }
.notice { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; }
.notice-ok { background: rgba(79,174,124,.12); border: 1px solid rgba(79,174,124,.4); }
.notice-err { background: rgba(192,70,63,.12); border: 1px solid rgba(192,70,63,.45); }
.copy-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .3em .9em; font-size: .8rem; cursor: pointer; font-family: var(--sans); }
.copy-btn:hover { color: var(--cream); border-color: var(--line-strong); }

/* ---------- Generic content ---------- */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head p { color: var(--muted); }
.entry-content { max-width: 72ch; padding-bottom: 72px; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 3px solid var(--brass); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--muted); }
.post-list { display: grid; gap: 16px; padding-bottom: 72px; }
.post-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.post-item h2 { font-size: 1.5rem; }
.post-item time { color: var(--muted); font-size: .85rem; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-numbers { border: 1px solid var(--line); border-radius: 10px; padding: .45em .9em; color: var(--muted); }
.pagination .current { border-color: var(--brass); color: var(--brass-hi); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cream); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; font-size: .8rem; }
.rg-note { max-width: 70ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Direct sales + landings ---------- */
.landed-banner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 14px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(216,180,106,.16), rgba(216,180,106,.04));
}
.landed-banner p { margin: 0; }
.landed-banner strong { color: var(--brass-hi); font-weight: 700; }
.landed-banner .brand-mark { width: 30px; height: 30px; }
.offer-form .check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
.offer-form .check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brass); flex: none; }
.buy-steps { margin: 18px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .85rem; display: grid; gap: 6px; }
.buy-steps li::marker { color: var(--brass); font-family: var(--mono); }
.offer-toggle { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.offer-toggle summary { cursor: pointer; color: var(--brass-hi); font-weight: 700; font-size: .92rem; list-style: none; }
.offer-toggle summary::-webkit-details-marker { display: none; }
.offer-toggle summary::after { content: " +"; }
.offer-toggle[open] summary::after { content: " −"; }
.offer-toggle[open] summary { margin-bottom: 14px; }

/* ---------- Brand moments ---------- */
.cta-seal { width: 112px; height: 112px; margin: -100px auto 18px; display: block; border-radius: 50%; box-shadow: 0 0 0 6px var(--felt-900), 0 16px 40px rgba(0,0,0,.5); }
#sell { padding-top: 56px; }
.footer-brand .brand-mark { width: 52px; height: 52px; }
.footer-brand .brand-name { font-size: 1.6rem; }
.step::before { border-color: var(--brass); }
.footer-brand .brand, .footer-brand .brand:hover { color: var(--cream); }
.pay-buttons { display: grid; gap: 10px; }
.pay-buttons .btn { white-space: normal; flex-wrap: wrap; }
.pay-coins { display: block; width: 100%; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; opacity: .75; font-weight: 400; }
