/* ── OhGetEffed — The Visual Identity ─────────────────────────────────────── */

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Custom Properties ────────────────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #1a1a1a;
  --text:        #f0f0f0;
  --text-dim:    #999999;
  --muted:       #666666;
  --accent:      #ff4d00;
  --accent-glow: #ff6b2b;
  --accent-dim:  #cc3d00;
  --border:      #252525;
  --card-bg:     #141414;
  --card-hover:  #1c1c1c;
  --success:     #22c55e;
  --radius:      8px;
  --radius-lg:   16px;
  --max-w:       1100px;
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-glow); }

img { max-width: 100%; display: block; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
@media (max-width: 375px) {
  .nav-logo { font-size: 1.25rem; }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ── Quote of the Day ─────────────────────────────────────────────────────── */
.qotd {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 700px;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.qotd.loaded {
  opacity: 1;
  transform: translateY(0);
}

.qotd-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.qotd-text {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
}

.qotd-attribution {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ── Morning F-Bomb Section ───────────────────────────────────────────────── */
.fbomb {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fbomb-header {
  text-align: center;
  margin-bottom: 3rem;
}

.fbomb-header h2 {
  margin-bottom: 0.75rem;
}

.fbomb-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Vote buttons grid */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.vote-btn {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  background: var(--bg3);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: lowercase;
}

.vote-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 77, 0, 0.1);
  transform: translateY(-2px);
}

.vote-btn:active {
  transform: translateY(0);
}

.vote-btn.selected {
  border-color: var(--accent);
  background: rgba(255, 77, 0, 0.15);
  color: var(--accent);
}

/* Custom vote input */
.vote-custom {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.vote-custom input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg3);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.vote-custom input::placeholder { color: var(--muted); }
.vote-custom input:focus { border-color: var(--accent); }

.vote-custom button {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.vote-custom button:hover { background: var(--accent-glow); }

/* Results */
.results {
  max-width: 600px;
  margin: 0 auto;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.results-header h3 {
  font-size: 1.1rem;
}

.results-total {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.result-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 100px;
  text-align: right;
  color: var(--text);
}

.result-bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.result-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 2px;
}

.result-pct {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 48px;
}

.vote-message {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.vote-message.visible { opacity: 1; }

/* ── Dictionary Teaser ────────────────────────────────────────────────────── */
.dict-teaser {
  text-align: center;
}

.dict-teaser-header {
  margin-bottom: 3rem;
}

.dict-teaser-header h2 {
  margin-bottom: 0.75rem;
}

.dict-teaser-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

.dict-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  text-align: left;
}

/* ── Dictionary Card (shared between teaser and full page) ────────────────── */
.dict-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.dict-card:hover {
  border-color: var(--accent-dim);
  background: var(--card-hover);
}

.dict-card-word {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.dict-card-pronunciation {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.dict-card-definition {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.dict-card-usage {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dim);
  padding-left: 1rem;
  border-left: 2px solid var(--accent-dim);
  margin-bottom: 0.75rem;
}

.dict-card-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dict-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  background: var(--bg3);
  color: var(--text-dim);
  border-radius: 4px;
}

.dict-tag.region { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.dict-tag.intensity { color: var(--accent); background: rgba(255, 77, 0, 0.1); }

/* ── Dictionary Card Expanded Details ─────────────────────────────────────── */
.dict-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.dict-card.expanded .dict-card-details {
  max-height: 200px;
  margin-top: 0.75rem;
}

.dict-card-origin,
.dict-card-funfact {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.dict-card-origin strong,
.dict-card-funfact strong {
  color: var(--text);
}

/* ── CTA Button ───────────────────────────────────────────────────────────── */
.cta {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.cta:hover {
  background: var(--accent-glow);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-tagline {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1rem;
  font-style: italic;
}

/* ── Dictionary Page ──────────────────────────────────────────────────────── */
.dict-page {
  padding-top: 2rem;
}

.dict-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dict-page-header h1 {
  margin-bottom: 0.75rem;
}

.dict-page-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Search + Filters */
.dict-controls {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.dict-search {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  background: var(--bg3);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 1.25rem;
}

.dict-search::placeholder { color: var(--muted); }
.dict-search:focus { border-color: var(--accent); }

.dict-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: var(--bg3);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: lowercase;
}

.filter-pill:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

.filter-pill.active {
  background: rgba(255, 77, 0, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Dictionary grid on full page */
.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.dict-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* ── Intensity Dots ───────────────────────────────────────────────────────── */
.intensity-dots {
  display: inline-flex;
  gap: 3px;
}

.intensity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.intensity-dot.filled {
  background: var(--accent);
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 3rem 0; }

  .hero { min-height: 80vh; padding: 3rem 1rem; }

  .qotd { padding: 1.75rem 1.25rem; }

  .vote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vote-custom {
    flex-direction: column;
  }

  .result-word {
    min-width: 70px;
    font-size: 0.85rem;
  }

  .dict-teaser-grid,
  .dict-grid {
    grid-template-columns: 1fr;
  }

  .nav-links { gap: 1.25rem; }
}

/* ── Hamburger Nav ────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; gap: 0; padding: 12px 0 0; }
  .nav-links.nav-open { display: flex; }
  .nav .container { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .vote-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1440px) {
  :root { --max-w: 1200px; }
}

@media (min-width: 1920px) {
  :root { --max-w: 1200px; }
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
