/*
Theme Name: Rankbid
Author: Rankbid
Description: A focused, responsive theme for public product rankings.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rankbid
*/

:root {
  --rb-ink: #292522;
  --rb-muted: #918b86;
  --rb-paper: #fffdfa;
  --rb-surface: #fff;
  --rb-line: #eee3dd;
  --rb-green: #f18162;
  --rb-green-dark: #893b2b;
  --rb-accent: #fdebe5;
  --rb-danger: #a33a32;
  --rb-radius: 18px;
  --rb-shadow: 0 18px 50px rgba(87, 50, 34, .06);
  --rb-font: 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(--rb-ink);
  background: var(--rb-paper);
  font-family: var(--rb-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: #d95f43; }
button, input, select, textarea { font: inherit; }
button, .rb-button {
  border: 0;
  border-radius: 999px;
  background: var(--rb-green);
  color: var(--rb-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  font-weight: 750;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
button:hover, .rb-button:hover {
  background: #eb7153;
  box-shadow: 0 8px 24px rgba(217, 95, 67, .2);
  color: var(--rb-ink);
  transform: translateY(-1px);
}
:focus-visible { outline: 3px solid #d95f43; outline-offset: 3px; }

.rb-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.rb-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 250, .94);
  border-bottom: 1px solid rgba(238, 227, 221, .88);
  backdrop-filter: blur(16px);
}
.rb-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.rb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 850;
  font-size: 1.2rem;
  letter-spacing: -.045em;
}
.rb-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--rb-green);
  color: var(--rb-green-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.08em;
}
.rb-brand img { max-height: 38px; width: auto; }
.rb-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.rb-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.rb-nav a { color: #716a65; font-size: .9rem; font-weight: 650; }
.rb-nav a:hover, .rb-nav .current-menu-item > a { color: var(--rb-ink); }
.rb-header-cta { flex: 0 0 auto; min-height: 42px; padding-inline: 17px; font-size: .9rem; }
.rb-mobile-toggle { display: none; }

.rb-main { min-height: 68vh; padding: 46px 0 84px; }
.rb-page-heading { margin: 0 0 28px; }
.rb-eyebrow {
  color: #de694c;
  display: inline-block;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.rb-title {
  font-size: clamp(2.1rem, 5vw, 3.45rem);
  letter-spacing: -.065em;
  line-height: 1.06;
  margin: 0;
  max-width: 820px;
}
.rb-lede { color: var(--rb-muted); font-size: 1.08rem; max-width: 690px; margin: 14px 0 0; }
.rb-home-hero {
  position: relative;
  overflow: hidden;
  background: var(--rb-ink);
  border-radius: 28px;
  color: #f8fbf5;
  padding: clamp(30px, 6vw, 68px);
  margin: 10px 0 34px;
}
.rb-home-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -92px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,243,107,.34), rgba(185,243,107,0) 68%);
  pointer-events: none;
}
.rb-home-hero > * { position: relative; z-index: 1; }
.rb-home-hero .rb-eyebrow { color: var(--rb-green); }
.rb-home-hero .rb-title { max-width: 670px; }
.rb-home-hero .rb-lede { color: #c3cec4; }
.rb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.rb-button--quiet {
  background: rgba(255,255,255,.08);
  color: #f8fbf5;
  border: 1px solid rgba(255,255,255,.16);
}
.rb-button--quiet:hover { color: #fff; background: rgba(255,255,255,.14); }

.rb-content { max-width: 820px; }
.rb-content > *:first-child { margin-top: 0; }
.rb-content h2, .rb-content h3 { letter-spacing: -.04em; line-height: 1.2; margin-top: 1.8em; }
.rb-content p, .rb-content li { color: #4f5d55; }
.rb-content a { color: #c75e43; text-decoration: underline; text-underline-offset: 3px; }

.rb-board-wrap { margin-top: 4px; }
.rb-home { width: 100%; }
.rb-period-tabs { width: fit-content; margin-bottom: 17px; }
.rb-claim-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(26px, 4vw, 48px);
  margin: 0 0 26px;
  border: 1px solid #f0ddd4;
  border-radius: 23px;
  background:
    radial-gradient(circle at 92% 5%, rgba(241, 129, 98, .12), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fff9f5 100%);
  box-shadow: 0 12px 38px rgba(87, 50, 34, .045);
}
.rb-claim-hero .rb-eyebrow { margin-bottom: 8px; }
.rb-claim-hero h1 {
  margin: 0;
  color: var(--rb-ink);
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  font-weight: 780;
  letter-spacing: -.065em;
  line-height: 1.08;
}
.rb-claim-amount {
  display: block;
  margin-top: 7px;
  color: #e66c4e;
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -.095em;
  line-height: .98;
  white-space: nowrap;
}
.rb-claim-amount span { font-size: .62em; }
.rb-claim-hero-copy > p {
  max-width: 550px;
  margin: 14px 0 0;
  color: #77706b;
  font-size: .98rem;
}
.rb-claim-hero-action {
  padding: 21px;
  border: 1px solid rgba(238, 227, 221, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .8);
}
.rb-claim-hero-form { display: grid; gap: 12px; }
.rb-claim-hero-form .rb-field { margin: 0; }
.rb-claim-hero-form select { width: 100%; }
.rb-claim-hero-form .rb-button { width: 100%; gap: 9px; min-height: 50px; }
.rb-claim-unavailable { margin: 0; color: var(--rb-muted); font-size: .9rem; }
.rb-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 310px);
  align-items: start;
  gap: 24px;
}
.rb-home-primary, .rb-home-sidebar { min-width: 0; }
.rb-home-sidebar { position: sticky; top: 98px; }
.rb-home-primary .rb-board-wrap { margin: 0; }
.rb-home-primary .rb-board-head { align-items: center; }
.rb-home-primary .rb-board-title { font-size: 1.42rem; }
.rb-mini-board {
  overflow: hidden;
  border: 1px solid var(--rb-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(87, 50, 34, .035);
}
.rb-mini-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f1e9e4;
}
.rb-mini-board-head h2 { margin: 0; font-size: 1.03rem; letter-spacing: -.035em; }
.rb-mini-board-head > a { color: #d95f43; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.rb-mini-list { list-style: none; margin: 0; padding: 0; }
.rb-mini-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 10px 14px;
  border-bottom: 1px solid #f3ece7;
}
.rb-mini-list li:last-child { border-bottom: 0; }
.rb-mini-rank { color: #d95f43; font-size: .75rem; font-weight: 850; }
.rb-mini-name {
  overflow: hidden;
  color: var(--rb-ink);
  font-size: .82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-mini-list strong { color: #df674a; font-size: .78rem; white-space: nowrap; }
.rb-mini-empty { margin: 0; padding: 17px 18px 20px; color: var(--rb-muted); font-size: .85rem; }
.rb-home-stats { margin-top: 54px; }
.rb-home-stats > h2 { margin: 0 0 17px; font-size: 1.45rem; letter-spacing: -.045em; }
.rb-home-stats .rb-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-home-stats .rb-activity { margin-top: 22px; }
.rb-board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
}
.rb-board-title { margin: 0; font-size: 1.35rem; letter-spacing: -.04em; }
.rb-board-tabs { display: flex; gap: 5px; padding: 4px; background: #f6f1ed; border-radius: 999px; }
.rb-board-tabs a {
  color: #627067;
  font-size: .83rem;
  font-weight: 750;
  padding: 8px 14px;
  border-radius: 999px;
}
.rb-board-tabs a.is-active { background: #ed7256; color: #fff; box-shadow: 0 2px 8px rgba(130, 61, 39, .12); }
.rb-listing-table {
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--rb-surface);
  border: 0;
}
.rb-listing-row {
  display: grid;
  grid-template-columns: 44px 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid #eee3dd;
}
.rb-listing-row:nth-child(-n+3) { background: #fff1eb; border-bottom-color: transparent; border-radius: 18px; margin-bottom: 8px; }
.rb-listing-row:last-child { border-bottom: 0; }
.rb-listing-row:hover { background: #fff7f3; }
.rb-rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--rb-accent);
  border-radius: 13px;
  color: #e86c4f;
  font-size: .87rem;
  font-weight: 850;
}
.rb-listing-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: #f4eee9;
  color: var(--rb-ink);
  font-size: 1.1rem;
  font-weight: 800;
}
.rb-listing-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rb-listing-info { min-width: 0; }
.rb-listing-name { display: block; font-weight: 780; letter-spacing: -.02em; line-height: 1.3; }
.rb-listing-description {
  display: block;
  color: var(--rb-muted);
  font-size: .9rem;
  line-height: 1.45;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.rb-listing-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; color: #7b877e; font-size: .78rem; margin-top: 8px; }
.rb-listing-meta a { color: #c75e43; font-weight: 700; }
.rb-listing-total { text-align: right; white-space: nowrap; }
.rb-listing-total strong { display: block; color: #e66c4e; font-size: 1.05rem; letter-spacing: -.03em; }
.rb-listing-total span { color: var(--rb-muted); font-size: .74rem; }
.rb-listing-total .rb-row-claim {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff0e9;
  color: #b84f36;
  font-size: .72rem;
  font-weight: 800;
}
.rb-listing-total .rb-row-claim:hover { background: #ffe2d5; color: #873b2a; }
.rb-listing-total .rb-row-claim b { font-size: inherit; }
.rb-row-link { color: #4c5b51; display: inline-block; font-size: .8rem; font-weight: 750; margin-top: 7px; }
.rb-empty {
  background: var(--rb-surface);
  border: 1px dashed #cdd8cb;
  border-radius: var(--rb-radius);
  color: var(--rb-muted);
  padding: 34px;
  text-align: center;
}
.rb-empty strong { color: var(--rb-ink); display: block; font-size: 1.02rem; margin-bottom: 5px; }

.rb-category-grid, .rb-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rb-category-card, .rb-stat-card {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: 16px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rb-category-card:hover { box-shadow: var(--rb-shadow); transform: translateY(-2px); }
.rb-category-card strong { display: block; letter-spacing: -.02em; }
.rb-category-card span { color: var(--rb-muted); font-size: .86rem; }
.rb-stat-card small { color: var(--rb-muted); display: block; font-weight: 700; }
.rb-stat-card strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.06em; margin-top: 6px; }
.rb-activity { list-style: none; padding: 0; margin: 22px 0 0; }
.rb-activity li { border-bottom: 1px solid var(--rb-line); display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; }
.rb-activity li:last-child { border-bottom: 0; }
.rb-activity small { color: var(--rb-muted); }

.rb-form {
  max-width: 680px;
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow);
  padding: clamp(22px, 4vw, 36px);
}
.rb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rb-field { margin: 0 0 16px; }
.rb-field label { display: block; font-size: .87rem; font-weight: 750; margin-bottom: 6px; }
.rb-field input, .rb-field select, .rb-field textarea, .rb-search input {
  width: 100%;
  border: 1px solid #e5d9d2;
  border-radius: 11px;
  background: #fff;
  color: var(--rb-ink);
  min-height: 47px;
  padding: 10px 13px;
}
.rb-field textarea { min-height: 110px; resize: vertical; }
.rb-field small, .rb-form-note { color: var(--rb-muted); display: block; font-size: .8rem; margin-top: 6px; }
.rb-form-error {
  background: #fff0ee;
  border: 1px solid #f1c9c4;
  border-radius: 12px;
  color: var(--rb-danger);
  margin: 0 0 18px;
  padding: 12px 14px;
}
.rb-search { display: flex; gap: 10px; margin: 18px 0 22px; }
.rb-search input { flex: 1; }
.rb-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.rb-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-product-stats { margin: 20px 0 34px; }
.rb-callout {
  background: var(--rb-accent);
  border: 1px solid #f3d6cb;
  border-radius: 15px;
  color: #734133;
  padding: 17px 20px;
  margin: 22px 0;
}
.rb-date-list { list-style: none; margin: 20px 0; padding: 0; }
.rb-date-list li { border-bottom: 1px solid var(--rb-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.rb-date-list li:last-child { border: 0; }
.rb-date-list span { color: var(--rb-muted); font-size: .86rem; }

.rb-site-footer { background: #292522; color: #eee5df; padding: 36px 0; }
.rb-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.rb-footer-brand { font-size: 1.05rem; font-weight: 850; letter-spacing: -.04em; color: #fff; }
.rb-footer-copy { color: #9daa9d; font-size: .83rem; margin: 5px 0 0; }
.rb-footer-links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.rb-footer-links a { color: #d3c7c0; font-size: .83rem; }
.rb-footer-links a:hover { color: var(--rb-green); }
.rb-footer-meta { display: grid; gap: 5px; color: #a89b94; font-size: .75rem; text-align: right; }
.rb-footer-meta a { color: #e0d5cf; }
.rb-honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rb-search-results { list-style: none; margin: 0; padding: 0; }
.rb-search-results li { border-bottom: 1px solid var(--rb-line); padding: 14px 0; }
.rb-search-results a { display: block; font-weight: 750; }
.rb-search-results span { color: var(--rb-muted); font-size: .88rem; }
.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; }

@media (max-width: 760px) {
  .rb-shell { width: min(100% - 28px, 1120px); }
  .rb-header-inner { min-height: 66px; gap: 12px; }
  .rb-mobile-toggle {
    display: inline-flex;
    margin-left: auto;
    min-height: 40px;
    width: 42px;
    padding: 0;
    background: #f6eee9;
  }
  .rb-header-cta { display: inline-flex; min-height: 40px; padding-inline: 12px; font-size: .82rem; }
  .rb-nav { display: none; position: absolute; inset: 66px 0 auto; margin: 0; padding: 15px 22px 22px; background: var(--rb-paper); border-bottom: 1px solid var(--rb-line); }
  .rb-nav.is-open { display: block; }
  .rb-nav ul { display: grid; gap: 0; }
  .rb-nav li a { display: block; padding: 10px 0; }
  .rb-main { padding: 30px 0 58px; }
  .rb-home-hero { border-radius: 21px; margin-top: 0; }
  .rb-claim-hero { grid-template-columns: 1fr; gap: 22px; border-radius: 19px; }
  .rb-claim-amount { font-size: clamp(3.1rem, 13vw, 5rem); }
  .rb-home-layout { grid-template-columns: 1fr; gap: 24px; }
  .rb-home-sidebar { position: static; }
  .rb-home-stats { margin-top: 38px; }
  .rb-home-stats .rb-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-board-head, .rb-product-top { align-items: flex-start; flex-direction: column; }
  .rb-listing-row { grid-template-columns: 34px 44px minmax(0, 1fr); gap: 10px; padding: 16px 12px; }
  .rb-listing-logo { width: 44px; height: 44px; }
  .rb-listing-total { grid-column: 3; text-align: left; margin-top: 5px; }
  .rb-row-link { margin: 0 0 0 4px; }
  .rb-category-grid, .rb-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-form-grid { grid-template-columns: 1fr; gap: 0; }
  .rb-footer-inner { align-items: flex-start; flex-direction: column; }
  .rb-footer-meta { text-align: left; }
}
@media (max-width: 430px) {
  .rb-category-grid, .rb-stat-grid { grid-template-columns: 1fr; }
  .rb-listing-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .rb-search { flex-direction: column; }
  .rb-search .rb-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
