/*
Theme Name: RateThemBack
Theme URI: https://ratethemback.com
Author: RateThemBack
Description: Bootstrap-based custom theme for the RateThemBack recruitment review platform.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ratethemback
*/

:root {
  --rtb-ink: #151515;
  --rtb-charcoal: #242424;
  --rtb-paper: #f6f1e8;
  --rtb-panel: #fffdf8;
  --rtb-muted: #69655f;
  --rtb-line: rgba(21, 21, 21, 0.12);
  --rtb-coral: #e85d42;
  --rtb-green: #16805d;
  --rtb-amber: #c88722;
}

body {
  background: var(--rtb-paper);
  color: var(--rtb-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.rtb-navbar {
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid var(--rtb-line);
  backdrop-filter: blur(14px);
}

.rtb-navbar .menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 0.8rem;
  color: var(--rtb-muted);
  font-weight: 800;
  text-decoration: none;
}

.rtb-navbar .menu-item > a:hover,
.rtb-navbar .current-menu-item > a {
  background: var(--rtb-ink);
  color: #fff;
}

.rtb-brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--rtb-ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--rtb-coral);
  font-weight: 900;
}

.rtb-hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: clamp(5rem, 9vw, 9rem) 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.92), rgba(21, 21, 21, 0.74) 48%, rgba(21, 21, 21, 0.28)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.rtb-eyebrow {
  color: var(--rtb-coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rtb-hero h1 {
  max-width: 850px;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
}

.rtb-hero .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.rtb-btn-primary {
  --bs-btn-bg: var(--rtb-coral);
  --bs-btn-border-color: var(--rtb-coral);
  --bs-btn-hover-bg: #cf4f37;
  --bs-btn-hover-border-color: #cf4f37;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-weight: 900;
}

.rtb-btn-dark {
  --bs-btn-bg: var(--rtb-ink);
  --bs-btn-border-color: var(--rtb-ink);
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  font-weight: 900;
}

.rtb-metric-card,
.rtb-panel,
.rtb-review-card,
.rtb-company-card {
  border: 1px solid var(--rtb-line);
  border-radius: 8px;
  background: var(--rtb-panel);
  box-shadow: 0 18px 48px rgba(21, 21, 21, 0.1);
}

.rtb-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(760px, 100%);
  margin-top: 2.5rem;
}

.rtb-hero-metrics > div {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.rtb-hero-metrics strong,
.rtb-metric-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 950;
  line-height: 1;
}

.rtb-hero-metrics span,
.rtb-metric-card span {
  color: var(--rtb-muted);
  font-weight: 800;
}

.rtb-hero-metrics span {
  color: rgba(255, 255, 255, 0.72);
}

.rtb-ticker {
  overflow: hidden;
  border: 1px solid var(--rtb-line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  padding: 0.75rem;
}

.rtb-ticker-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: rtb-ticker 48s linear infinite;
}

.rtb-ticker:hover .rtb-ticker-track {
  animation-play-state: paused;
}

.rtb-ticker-item {
  width: 330px;
  min-height: 150px;
  padding: 1rem;
}

.rtb-score {
  display: inline-flex;
  min-width: 3.4rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.08);
  font-weight: 950;
}

.rtb-score-good {
  background: rgba(22, 128, 93, 0.14);
  color: var(--rtb-green);
}

.rtb-score-mid {
  background: rgba(200, 135, 34, 0.18);
  color: #7a520d;
}

.rtb-score-bad {
  background: rgba(232, 93, 66, 0.16);
  color: #9e3422;
}

.rtb-locked {
  background: #ece7dd;
}

.rtb-form label {
  color: var(--rtb-muted);
  font-weight: 800;
}

.rtb-form .form-control,
.rtb-form .form-select {
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

.rtb-footer {
  background: var(--rtb-charcoal);
  color: rgba(255, 255, 255, 0.74);
}

@keyframes rtb-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .rtb-hero-metrics {
    grid-template-columns: 1fr;
  }
}
