/*
Theme Name: CAR VOICE JAPAN
Theme URI: https://car-voice-japan.com/
Author: CAR VOICE JAPAN (@car_voice_japan)
Description: Threads発「クルマの本音｜実オーナーのリアルな声」専用オリジナルWordPressテーマ。カスタム投稿タイプ「クルマの本音」、検索フィルタ、車種別ラウンジ、アフィリエイト連携対応。
Version: 1.0.0
Text Domain: car-voice-japan
*/

:root {
  --bg-deep: #0b0d12;
  --bg-surface: #12161f;
  --bg-card: #171c28;
  --bg-card-hover: #1e2536;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f3f5f8;
  --text-muted: #9ba3b5;
  --text-dim: #687082;

  --accent-red: #ff3b30;
  --accent-red-glow: rgba(255, 59, 48, 0.28);
  --accent-amber: #ff9f0a;
  --accent-emerald: #2ed573;
  --accent-note: #41c9b4;

  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Chakra Petch', 'Noto Sans JP', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Live Ticker */
.top-ticker {
  background: linear-gradient(90deg, #16090b 0%, #1c1118 50%, #0f131d 100%);
  border-bottom: 1px solid rgba(255, 59, 48, 0.25);
  font-size: 0.82rem;
  padding: 8px 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 59, 48, 0.16);
  border: 1px solid rgba(255, 59, 48, 0.45);
  color: #ff6961;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.ticker-text {
  flex: 1;
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-link {
  color: var(--accent-amber);
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.ticker-link:hover {
  opacity: 0.85;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #252b3b 0%, #10131a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.tach-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-red));
}

.logo-en {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-badge-link {
  color: var(--accent-note);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
  color: #fff;
  padding: 12px 22px;
  box-shadow: 0 8px 22px var(--accent-red-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 59, 48, 0.42);
}

.btn-outline-sm {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-outline-sm:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-threads-sm {
  background: #fff;
  color: #0b0d12;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.btn-threads-sm:hover {
  background: #e5e8f0;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(9, 11, 16, 0.95) 0%,
    rgba(11, 13, 18, 0.86) 52%,
    rgba(11, 13, 18, 0.68) 100%
  ),
  linear-gradient(180deg, rgba(11, 13, 18, 0.3) 0%, var(--bg-deep) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.tag-pill {
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}

.eyebrow-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #dbe1ee;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.accent-red {
  color: var(--accent-red);
  text-shadow: 0 0 28px rgba(255, 59, 48, 0.38);
}

.hero-lead {
  font-size: 0.98rem;
  color: #c5ccd9;
  margin-bottom: 28px;
  max-width: 660px;
}

.inline-threads-link {
  color: var(--accent-amber);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quick Search Box */
.hero-quick-search {
  background: rgba(18, 22, 31, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.quick-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.qs-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
}

.qs-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.qs-count strong {
  color: var(--accent-amber);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.quick-search-controls {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.3fr auto;
  gap: 10px;
  align-items: end;
}

.select-wrap,
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.select-wrap label,
.input-wrap label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.select-wrap select,
.input-wrap input {
  background: #0d1017;
  color: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.86rem;
  font-family: var(--font-sans);
  outline: none;
}

.select-wrap select:focus,
.input-wrap input:focus {
  border-color: var(--accent-red);
}

.qs-submit {
  height: 43px;
  white-space: nowrap;
}

.popular-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.pop-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d6deed;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}

.tag-chip:hover {
  background: rgba(255, 59, 48, 0.18);
  border-color: var(--accent-red);
  color: #fff;
}

/* Hero Right: Live Stack Card */
.live-stack-card {
  background: linear-gradient(160deg, rgba(26, 32, 46, 0.95) 0%, rgba(16, 20, 29, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65);
  position: relative;
}

.stack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stack-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.acc-name {
  font-size: 0.85rem;
  font-weight: 800;
}

.acc-handle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.flame-badge {
  background: rgba(255, 159, 10, 0.16);
  border: 1px solid rgba(255, 159, 10, 0.45);
  color: var(--accent-amber);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.car-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.car-pill {
  background: rgba(255, 255, 255, 0.09);
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.owner-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.voice-quote {
  font-size: 0.93rem;
  color: #e9edf5;
  background: rgba(0, 0, 0, 0.28);
  border-left: 3px solid var(--accent-amber);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 14px;
}

.pros-cons-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.pc-box {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.pc-box.pros {
  background: rgba(46, 213, 115, 0.08);
  border: 1px solid rgba(46, 213, 115, 0.25);
}

.pc-box.cons {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.25);
}

.pc-title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.pc-box.pros .pc-title { color: var(--accent-emerald); }
.pc-box.cons .pc-title { color: #ff6961; }

.meter-row {
  margin-bottom: 16px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.meter-score {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-amber);
}

.meter-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-red));
  border-radius: 999px;
}

.stack-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.comment-stat {
  color: var(--text-muted);
  font-weight: 700;
}

.stack-more-link {
  color: var(--accent-amber);
  font-weight: 700;
}

/* Hero Stats Strip */
.hero-stats-strip {
  margin-top: 38px;
  background: rgba(18, 22, 31, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
}

.stat-num small {
  font-size: 0.95rem;
  color: var(--accent-red);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* Generic Section Styles */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-sub {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 900;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 540px;
}

/* Maker Tabs */
.maker-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.maker-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 112px;
  transition: all 0.2s;
}

.maker-tab:hover {
  border-color: var(--border-strong);
  color: #fff;
}

.maker-tab.active {
  background: linear-gradient(145deg, rgba(255, 59, 48, 0.2), rgba(255, 159, 10, 0.08));
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.18);
}

.m-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.m-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.maker-tab.active .m-count {
  color: var(--accent-amber);
}

/* Voices Toolbar & Grid */
.voices-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.active-filter-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.active-filter-info strong {
  color: #fff;
}

.sort-buttons {
  display: flex;
  gap: 8px;
}

.sort-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn.active,
.sort-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-strong);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.voice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.voice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
}

.vc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vc-maker-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-amber);
}

.vc-rating {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-amber);
  font-size: 0.9rem;
}

.vc-car-name {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.vc-owner-spec {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.vc-headline {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.5;
}

.vc-pros,
.vc-cons {
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.vc-pros {
  background: rgba(46, 213, 115, 0.07);
  border-left: 3px solid var(--accent-emerald);
}

.vc-cons {
  background: rgba(255, 59, 48, 0.07);
  border-left: 3px solid var(--accent-red);
}

.vc-pros strong { color: var(--accent-emerald); display: block; margin-bottom: 2px; }
.vc-cons strong { color: #ff6961; display: block; margin-bottom: 2px; }

.vc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vc-threads-btn {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.vc-threads-btn:hover {
  background: var(--accent-red);
}

/* Section 2: Lounge Section */
.lounge-section {
  background: linear-gradient(180deg, #0d1018 0%, #111622 100%);
}

.lounge-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
}

.lounge-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #dbe2f0;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-item {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
}

.room-item:hover,
.room-item.active {
  background: var(--bg-card-hover);
  border-color: var(--accent-amber);
}

.room-rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.room-name {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.room-latest {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.online-pill {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

.post-count {
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Lounge Right Preview */
.lounge-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-top: 2px;
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0;
  max-height: 330px;
  overflow-y: auto;
}

.chat-msg {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.chat-msg-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 5px;
}

.chat-user {
  font-weight: 800;
  color: var(--accent-amber);
}

.chat-time {
  color: var(--text-dim);
}

.chat-text {
  font-size: 0.85rem;
  color: #e4e9f2;
}

.quick-reply-bar {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.quick-reply-bar input {
  flex: 1;
  background: #0d1017;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.84rem;
}

/* Section 3: Pride Photo Gallery */
.header-right-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-award {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 159, 10, 0.5);
  color: var(--accent-amber);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery-specs-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 15, 0.94) 100%);
  padding: 24px 14px 10px;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: #cfd6e6;
}

.gallery-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.g-car {
  font-weight: 800;
  color: var(--accent-amber);
}

.g-owner {
  color: var(--text-muted);
}

.gallery-caption {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.45;
}

.gallery-comment {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

.like-btn {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ff6961;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}

.like-btn:hover,
.like-btn.liked {
  background: var(--accent-red);
  color: #fff;
}

.g-location {
  color: var(--text-dim);
}

/* Section 4: Monetization (NOTE & Gear Affiliate) */
.monetization-section {
  background: radial-gradient(circle at top right, rgba(65, 201, 180, 0.08), transparent 45%),
              var(--bg-deep);
}

.note-block {
  background: linear-gradient(145deg, #131b24 0%, #10151f 100%);
  border: 1px solid rgba(65, 201, 180, 0.3);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 68px;
}

.note-banner-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.note-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(65, 201, 180, 0.14);
  border: 1px solid rgba(65, 201, 180, 0.4);
  color: var(--accent-note);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

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

.btn-note {
  background: var(--accent-note);
  color: #071311;
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 10px;
  white-space: nowrap;
}

.btn-note-sm {
  background: var(--accent-note);
  color: #071311;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.note-cards-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
}

.note-card {
  background: rgba(11, 14, 20, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.note-card.featured-note {
  border-color: rgba(65, 201, 180, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.note-ribbon {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(90deg, #ff9f0a, #ff3b30);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.note-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.note-cat {
  font-size: 0.75rem;
  color: var(--accent-note);
  font-weight: 700;
}

.note-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
}

.note-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.45;
}

.note-card-excerpt {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.note-chapters {
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: #d6deed;
}

.note-chapters li + li {
  margin-top: 4px;
}

.note-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

.note-readers {
  color: var(--accent-amber);
  font-weight: 700;
}

/* Gear / Affiliate Section */
.gear-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.gear-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.gear-tab.active,
.gear-tab:hover {
  background: #fff;
  color: #0b0d12;
  border-color: #fff;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gear-card.service-highlight {
  border-color: rgba(255, 159, 10, 0.45);
  background: linear-gradient(145deg, #1d1a14 0%, #161a24 100%);
}

.gear-rank-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 159, 10, 0.15);
  border: 1px solid rgba(255, 159, 10, 0.4);
  color: var(--accent-amber);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.gear-cat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.gear-title {
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.owner-voice-bubble {
  background: rgba(0, 0, 0, 0.26);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #dce3f0;
  margin-bottom: 14px;
}

.owner-voice-bubble strong {
  color: var(--accent-amber);
  display: block;
  margin-bottom: 3px;
}

.gear-rating-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.stars {
  color: var(--accent-amber);
  font-weight: 800;
}

.recommend-count {
  color: var(--text-muted);
}

.gear-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gear-cta-group.single-cta {
  grid-template-columns: 1fr;
}

.btn-aff {
  text-align: center;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-aff:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-aff.amazon {
  background: #ff9900;
  color: #111;
}

.btn-aff.rakuten {
  background: #bf0000;
  color: #fff;
}

.btn-aff.primary-service {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-red));
  color: #fff;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: #07090d;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 14px 0 18px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #0d1017;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .lounge-layout,
  .note-cards-grid {
    grid-template-columns: 1fr;
  }
  .voices-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-search-controls {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .voices-grid,
  .gallery-grid,
  .gear-grid,
  .quick-search-controls,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* === WordPress Single / Archive / Comments Styles === */
.wp-blog-section { padding-top: 20px; }
.wp-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.wp-post-card { background: var(--bg-card, #141923); border: 1px solid var(--border-subtle, #242d3d); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s; }
.wp-post-card:hover { transform: translateY(-3px); border-color: #ef4444; }
.wp-post-link { display: block; color: inherit; text-decoration: none; }
.wp-post-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.wp-post-body { padding: 18px; }
.wp-post-date { font-size: 12px; color: #94a3b8; }
.wp-post-title { font-size: 1.05rem; font-weight: 700; margin: 8px 0 10px; line-height: 1.45; color: #fff; }
.wp-post-excerpt { font-size: 13px; color: #cbd5e1; line-height: 1.6; margin-bottom: 12px; }
.wp-post-more { font-size: 13px; font-weight: 700; color: #f59e0b; }

.wp-single-main { min-height: 60vh; }
.wp-single-article { background: var(--bg-card, #141923); border: 1px solid var(--border-subtle, #242d3d); border-radius: 18px; padding: 32px; }
.wp-single-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #94a3b8; margin-bottom: 12px; }
.wp-single-badge { background: rgba(239,68,68,0.18); color: #f87171; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.wp-single-title { font-size: 1.8rem; font-weight: 900; line-height: 1.35; margin-bottom: 24px; color: #fff; }
.wp-single-thumb img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 24px; }
.wp-voice-summary-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
@media (max-width: 640px) { .wp-voice-summary-boxes { grid-template-columns: 1fr; } .wp-single-article { padding: 20px; } }
.wp-single-content { font-size: 15px; line-height: 1.85; color: #e2e8f0; }
.wp-single-content h2 { font-size: 1.35rem; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid #ef4444; color: #fff; }
.wp-single-content p { margin-bottom: 16px; }
.wp-comments-wrap { margin-top: 32px; background: var(--bg-card, #141923); border: 1px solid var(--border-subtle, #242d3d); border-radius: 18px; padding: 28px; color: #e2e8f0; }
.wp-comments-wrap textarea, .wp-comments-wrap input[type=text], .wp-comments-wrap input[type=email], .wp-comments-wrap input[type=url] { width: 100%; background: #0b0f17; border: 1px solid #334155; color: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.wp-comments-wrap input[type=submit] { background: #e11d48; color: #fff; border: none; border-radius: 999px; padding: 10px 24px; font-weight: 700; cursor: pointer; margin-top: 12px; }
