/*
Theme Name: Unhappy Cars
Theme URI: https://unhappycars.com
Description: Custom modern theme for Unhappy Cars - Lemon Car Stories & Community
Version: 1.0
Author: DionWeb Services
Text Domain: unhappy-cars
*/

:root {
  --bg-primary: #FDFBF7;
  --bg-secondary: #F0EDE4;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --accent: #E74C3C;
  --accent-hover: #C0392B;
  --accent-light: #FDEDEC;
  --accent-warm: #F39C12;
  --accent-warm-hover: #E67E22;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-bg: rgba(253, 251, 247, 0.95);
  --input-bg: #FFFFFF;
  --code-bg: #F8F9FA;
}

[data-theme="dark"] {
  --bg-primary: #0F1724;
  --bg-secondary: #1A2840;
  --bg-card: #1E2D45;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #EF4444;
  --accent-hover: #DC2626;
  --accent-light: #2D1B1B;
  --accent-warm: #F59E0B;
  --accent-warm-hover: #D97706;
  --border: #2A4060;
  --border-light: #1E2D45;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
  --header-bg: rgba(15, 23, 36, 0.95);
  --input-bg: #1E2D45;
  --code-bg: #1A2840;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.site-logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo .logo-icon { font-size: 28px; }
.site-logo .logo-accent { color: var(--accent); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-warm {
  background: var(--accent-warm);
  color: #fff;
}
.btn-warm:hover {
  background: var(--accent-warm-hover);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(243, 156, 18, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 5%); }
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 48px; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: var(--accent); padding: 14px 32px; font-size: 16px; }
.hero .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; padding: 14px 32px; font-size: 16px; }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ===== VIDEO HERO ===== */
.hero-video {
  background: none !important;
  padding: 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-video .hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-area { padding: 40px 0; min-height: 60vh; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
}
.card-body { padding: 20px; }
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}
.card-tag.fix { background: #FEF3C7; color: #D97706; }
.card-tag.story { background: var(--accent-light); color: var(--accent); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

[data-theme="dark"] .stats-highlight {
  background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 50%, #333333 100%);
  padding: 30px 20px;
  border-radius: var(--radius);
}

/* Dark mode: BuddyPress members directory */
[data-theme="dark"] #subnav-filters .bp-dir-search-form input[type="search"] {
  border: none !important;
  background: #1E2D45 !important;
}

[data-theme="dark"] #subnav-filters .bp-dir-search-form button[type="submit"] {
  border: none !important;
  background: #1E2D45 !important;
}

[data-theme="dark"] #dir-filters .select-wrap select {
  border: none !important;
  background: #1E2D45 !important;
  color: #fff !important;
}

[data-theme="dark"] nav.bp-navs {
  border-bottom: none !important;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== SINGLE POST ===== */
.single-post-header {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.single-post-header h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
  align-items: center;
}
.post-meta .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}
.post-content p { margin-bottom: 20px; }
.post-content h2 { font-size: 24px; margin: 32px 0 16px; }
.post-content h3 { font-size: 20px; margin: 24px 0 12px; }
.post-content ul, .post-content ol { margin: 0 0 20px 20px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.post-content code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.post-content pre {
  background: var(--code-bg);
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.post-content pre code { background: none; padding: 0; }
.post-content img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.post-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1A1A2E;
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 40px;
  margin-top: 60px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
}

/* ===== BUDDYPRESS OVERRIDES ===== */
.bp-page .content-area { max-width: 1000px; margin: 0 auto; }
#buddypress .bp-wrap { background: transparent; }
#buddypress .item-list-tabs { border-bottom: 1px solid var(--border); }
#buddypress .item-list-tabs a { color: var(--text-secondary); }
#buddypress .item-list-tabs .current a,
#buddypress .item-list-tabs a:hover { color: var(--accent); }
#buddypress .dir-search input[type="search"],
#buddypress .dir-search input[type="text"] {
  background: var(--input-bg);
  border: 2px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}
#buddypress .button { background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); }
#buddypress .button:hover { background: var(--accent-hover); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .main-nav { order: 3; width: 100%; }
  .main-nav ul { justify-content: center; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .single-post-header h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 26px; }
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn span { display: none; }
}
/* ===== FORUM BOARD (Reddit-style) ===== */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 20px;
}
.forum-header-left h1 { margin: 0; }
.forum-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}
.forum-header-right { flex-shrink: 0; }

.forum-board {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.forum-post {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color var(--transition);
}
.forum-post:hover {
  border-color: var(--accent);
}

/* Vote column */
.forum-post-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius) 0 0 var(--radius);
  min-width: 48px;
  flex-shrink: 0;
}
.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  padding: 2px 4px;
  line-height: 1;
  transition: all var(--transition);
  border-radius: 4px;
}
.vote-btn:hover { color: var(--accent); background: var(--accent-light); }
.vote-btn.voted { color: var(--accent); }
.vote-btn.vote-up.voted { color: #FF4500; }
.vote-btn.vote-down.voted { color: #7193FF; }
.vote-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* Post content */
.forum-post-content {
  flex: 1;
  padding: 16px 20px;
  min-width: 0;
}

.forum-post-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.forum-post-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
}
.type-story { background: var(--accent-light); color: var(--accent); }
.type-guide { background: #FEF3C7; color: #D97706; }
.forum-post-car {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}
.forum-post-issue {
  font-size: 11px;
  font-weight: 600;
  color: #7C3AED;
  background: #F5F3FF;
  padding: 2px 8px;
  border-radius: 4px;
}
[data-theme="dark"] .forum-post-issue {
  background: #2D1B69;
  color: #A78BFA;
}

.forum-post-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.forum-post-title a { color: var(--text-primary); }
.forum-post-title a:hover { color: var(--accent); }

.forum-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.forum-post-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.forum-post-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.forum-post-author strong { color: var(--text-primary); }

.forum-post-thumb {
  margin-bottom: 10px;
}
.forum-post-thumb img {
  max-height: 200px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.forum-post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.forum-post-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}
.forum-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.forum-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.forum-action-btn.reacted {
  color: var(--accent);
  background: var(--accent-light);
}
.reaction-count {
  font-size: 12px;
  font-weight: 600;
  min-width: 12px;
  display: inline-block;
}

.forum-pagination {
  margin-top: 24px;
  text-align: center;
}
.forum-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
}
.forum-pagination .page-numbers:hover,
.forum-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.forum-empty {
  text-align: center;
  padding: 80px 20px;
}

/* ===== SINGLE POST (Reddit-style) ===== */
.single-post-breadcrumb {
  margin-bottom: 12px;
}
.single-post-breadcrumb a {
  font-size: 14px;
  color: var(--text-muted);
}
.single-post-breadcrumb a:hover { color: var(--accent); }

.single-post-layout {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 20px;
}
.single-post-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius) 0 0 var(--radius);
  min-width: 48px;
  flex-shrink: 0;
}
.single-post-body {
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
}
.single-post-featured-image {
  margin-bottom: 20px;
}
.single-post-featured-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Reactions bar */
.post-reactions {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reactions-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.reactions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reaction-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.reaction-btn-large:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.reaction-btn-large.reacted {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.reaction-btn-large .reaction-count {
  font-size: 13px;
}

/* Comments section */
.post-comments-section {
  margin-top: 24px;
}
.comments-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .forum-header { flex-direction: column; }
  .forum-post { flex-direction: column; }
  .forum-post-votes {
    flex-direction: row;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px 16px;
    justify-content: center;
  }
  .single-post-layout { flex-direction: column; }
  .single-post-votes {
    flex-direction: row;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px 16px;
    justify-content: center;
  }
  .reactions-bar { justify-content: center; }
}
/* ===== EVENTS CALENDAR ===== */
.events-page { padding: 20px 0; }

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
}
.events-header-right { flex-shrink: 0; }

/* Calendar Controls */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cal-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-primary);
  transition: all var(--transition);
}
.cal-nav-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.cal-month-year {
  font-size: 22px;
  font-weight: 800;
  min-width: 200px;
  text-align: center;
  color: var(--text-primary);
}
.calendar-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-group .form-select {
  min-width: 180px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Calendar Grid */
.calendar-grid-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.calendar-weekdays span {
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-day {
  min-height: 100px;
  padding: 6px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  cursor: pointer;
  position: relative;
}
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day.other-month {
  background: var(--bg-secondary);
  opacity: 0.5;
}
.calendar-day.today {
  background: var(--accent-light);
}
.calendar-day:hover {
  background: var(--bg-secondary);
}
.calendar-day-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.calendar-day.today .calendar-day-number {
  color: var(--accent);
  font-weight: 800;
}
.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calendar-day-event {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all var(--transition);
}
.calendar-day-event:hover { opacity: 0.85; transform: translateX(1px); }
.calendar-day-event.more-events {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 9px;
  text-align: center;
}

/* Events List */
.events-list-section {
  margin-bottom: 24px;
}
.events-list-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.events-list { display: flex; flex-direction: column; gap: 8px; }
.events-loading { color: var(--text-muted); text-align: center; padding: 20px; }

.event-list-item {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  align-items: flex-start;
}
.event-list-item:hover { border-color: var(--accent); }
.event-list-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 50px;
  padding: 6px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}
.event-list-date .day { display: block; font-size: 20px; font-weight: 800; line-height: 1; }
.event-list-date .month { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.event-list-info { flex: 1; min-width: 0; }
.event-list-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.event-list-info p { font-size: 13px; color: var(--text-secondary); }
.event-list-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: 4px; flex-wrap: wrap; }
.event-list-actions { flex-shrink: 0; display: flex; gap: 6px; align-items: center; }

/* Event Modal */
.event-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.event-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}
.event-modal.event-modal-form { max-width: 600px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.event-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
  z-index: 1;
}
.event-modal-close:hover { background: var(--bg-secondary); color: var(--text-primary); }
.event-modal-body { padding: 28px; }

.event-modal-header {
  margin-bottom: 16px;
}
.event-modal-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.event-modal-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}
.event-modal-meta span { display: flex; align-items: center; gap: 4px; }
.event-modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.event-modal-author {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.event-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* International Calendars */
.international-calendars {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  margin-top: 24px;
}
.international-calendars h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.international-calendars p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.country-calendar-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.country-link {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.country-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-controls { flex-direction: column; align-items: stretch; }
  .calendar-nav { justify-content: center; }
  .calendar-filters { flex-direction: column; }
  .filter-group .form-select { min-width: auto; }
  .calendar-day { min-height: 60px; }
  .calendar-day-event { font-size: 8px; }
  .events-header { flex-direction: column; }
  .event-list-item { flex-direction: column; }
  .event-list-date { display: flex; gap: 4px; align-items: center; min-width: auto; }
  .event-list-date .day { font-size: 16px; }
  .event-modal { margin: 10px; max-height: 90vh; }
}
/* ===== EVENTS / CALENDAR ===== */
.events-page { padding: 20px 0; }

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.events-header-right { flex-shrink: 0; }

/* Calendar Controls */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition);
  line-height: 1;
}
.cal-nav-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cal-month-year {
  font-size: 20px;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
  color: var(--text-primary);
}
.calendar-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-group .form-select {
  padding: 8px 12px;
  font-size: 13px;
  min-width: 160px;
}

/* Calendar Grid */
.calendar-grid-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.calendar-weekdays span {
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day {
  min-height: 100px;
  padding: 6px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--bg-secondary); }
.cal-day-empty { background: var(--bg-primary); cursor: default; }
.cal-day-empty:hover { background: var(--bg-primary); }
.cal-today { background: var(--accent-light); }
.cal-today:hover { background: var(--accent-light); }
.cal-day-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}
.cal-today .cal-day-num {
  color: var(--accent);
  font-weight: 800;
}
.cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-day-event {
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition);
}
.cal-day-event:hover { opacity: 0.85; }
.cal-day-more {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 1px 4px;
}

/* Events List */
.events-list-section {
  margin-bottom: 24px;
}
.events-list-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.events-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-size: 14px;
}
.events-list-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.events-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.events-list-item:hover { border-color: var(--accent); }
.events-item-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 100px;
  text-align: center;
  padding: 8px 12px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
}
.events-item-info { flex: 1; min-width: 0; }
.events-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.events-item-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.events-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* International Events Link */
.international-events-link {
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.international-events-link a {
  font-weight: 600;
  font-size: 15px;
}

/* Event Modal */
.event-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.event-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.event-form-modal { max-width: 600px; }
.event-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}
.event-modal-close:hover {
  background: var(--accent);
  color: #fff;
}
.event-modal-body { padding: 28px; }
.event-modal-header { margin-bottom: 16px; }
.event-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  padding-right: 30px;
}
.event-modal-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.event-modal-details p {
  font-size: 14px;
  color: var(--text-secondary);
}
.event-modal-details strong { color: var(--text-primary); }
.event-modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.event-modal-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Event Form */
.event-form { margin-top: 16px; }
.event-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-controls { flex-direction: column; align-items: stretch; }
  .calendar-nav { justify-content: center; }
  .calendar-filters { justify-content: center; }
  .cal-day { min-height: 60px; }
  .cal-day-event { font-size: 10px; }
  .events-list-item { flex-direction: column; align-items: flex-start; }
  .events-item-date { min-width: auto; }
  .events-item-actions { width: 100%; justify-content: flex-end; }
  .event-form .form-row { grid-template-columns: 1fr; }
  .events-header { flex-direction: column; }
}
/* ===== THREE-COLUMN FORM ROW ===== */
.form-row {
  display: grid;
  gap: 16px;
}
.form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 600px) {
  .form-row.three-col {
    grid-template-columns: 1fr;
  }
}
/* Style optgroups (EV section) */
.form-select optgroup {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 8px;
}
.form-select option {
  font-weight: 400;
  color: var(--text-primary);
}

/* ===== CREATE POST FORM (Card-based) ===== */
.create-post-page {
  max-width: 720px;
  margin: 0 auto;
}
.create-post-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.create-post-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}
.create-post-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.optional-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}
/* File input styling */
.file-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.file-input-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.file-input-name {
  font-size: 13px;
  color: var(--text-muted);
}
/* Action buttons */
.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}
/* Override old section-title/subtitle inside create page */
.create-post-page .section-title,
.create-post-page .section-subtitle {
  display: none;
}
.page-id-121 .single-post-header-title {
  text-align: center;
}
.main-nav a { white-space: nowrap; }  
/* Fix nav wrapping - keep labels on one line */ 
.main-nav a { white-space: nowrap; } 
.header-actions { flex-shrink: 0; } 
.header-actions .btn { white-space: nowrap; }

/* ===== COMMUNITY LOUNGE ===== */
.lounge-container { max-width: 720px; margin: 0 auto; }
.lounge-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.lounge-header h2 { font-size: 24px; font-weight: 800; margin: 0; }
.lounge-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 2px; }
.lounge-online-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; display: inline-block; }
.lounge-messages { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); height: 400px; overflow-y: auto; padding: 16px; margin-bottom: 12px; }
.lounge-loading, .lounge-empty { text-align: center; color: var(--text-muted); padding: 40px; font-size: 14px; }
.lounge-msg { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background var(--transition); }
.lounge-msg:hover { background: var(--bg-secondary); }
.lounge-msg-avatar img { border-radius: 50%; width: 28px; height: 28px; }
.lounge-msg-body { flex: 1; min-width: 0; }
.lounge-msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.lounge-msg-author { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.lounge-msg-time { font-size: 11px; color: var(--text-muted); }
.lounge-msg-car { font-size: 11px; color: var(--accent); background: var(--accent-light); padding: 1px 6px; border-radius: 4px; }
.lounge-msg-text { font-size: 14px; line-height: 1.5; color: var(--text-secondary); word-wrap: break-word; }
.lounge-composer { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.lounge-composer-avatar img { border-radius: 50%; width: 32px; height: 32px; }
.lounge-form { flex: 1; display: flex; gap: 8px; }
.lounge-input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--input-bg); color: var(--text-primary); transition: border-color var(--transition); }
.lounge-input:focus { outline: none; border-color: var(--accent); }
.lounge-send-btn { padding: 10px 20px !important; flex-shrink: 0; }
.lounge-login-msg { text-align: center; padding: 60px 20px; }
.lounge-login-msg p { font-size: 18px; }

/* ===== GARAGE & STATS ===== */
.uc-garage { max-width: 600px; margin: 0 auto; }
.garage-car-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.garage-car-icon { font-size: 48px; flex-shrink: 0; }
.garage-car-details h3 { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: var(--text-primary); }
.garage-mileage { font-size: 14px; color: var(--text-secondary); margin: 0; }
.garage-empty { text-align: center; padding: 40px 20px; width: 100%; }
.garage-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.garage-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.garage-stat-icon { font-size: 28px; margin-bottom: 6px; }
.garage-stat-number { font-size: 28px; font-weight: 900; color: var(--accent); }
.garage-stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.garage-actions { text-align: center; }

/* ===== ACTIVITY CAR BADGE ===== */
.activity-car-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--accent); background: var(--accent-light); padding: 2px 8px; border-radius: 4px; font-weight: 600; margin-left: 8px; }
.post-car-info { font-size: 13px; color: var(--accent); background: var(--accent-light); padding: 6px 12px; border-radius: var(--radius-sm); margin-bottom: 16px; display: inline-block; font-weight: 600; }



/* ===== ENHANCED LOUNGE PAGE ===== */
.lounge-page { max-width: 800px; margin: 0 auto; }
.lounge-section { margin-bottom: 28px; }
.lounge-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lounge-section-header h3 { font-size: 18px; font-weight: 700; margin: 0; color: var(--text-primary); }

/* Member Grid */
.lounge-member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.member-grid-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; transition: all var(--transition); }
.member-grid-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.member-grid-card img { border-radius: 50%; width: 48px; height: 48px; }
.member-grid-name { font-size: 11px; font-weight: 600; color: var(--text-primary); text-align: center; line-height: 1.2; word-wrap: break-word; max-width: 100%; }

/* Activity Feed */
.lounge-activity-list { display: flex; flex-direction: column; gap: 6px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color var(--transition); }
.activity-item:hover { border-color: var(--accent); }
.activity-item-avatar img { border-radius: 50%; width: 24px; height: 24px; }
.activity-item-body { flex: 1; min-width: 0; }
.activity-item-action { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.activity-item-action a { color: var(--text-primary); font-weight: 600; }
.activity-item-time { font-size: 11px; color: var(--text-muted); }



/* ===== LOUNGE V3: Centered Header + Chat Sidebar ===== */
.lounge-page { max-width: 1110px; margin: 0 auto; }
.lounge-header-centered { text-align: center; margin-bottom: 4px; }
.lounge-leaderboard { display: flex; flex-direction: column; align-items: center; gap: 4px; }
body.page-id-47 .content-area { padding-top: 2px; }
.leaderboard-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.leaderboard-member { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 14px 6px 10px; text-decoration: none; transition: all var(--transition); }
.leaderboard-member:hover { background: var(--bg-secondary); border-color: var(--accent); transform: translateY(-1px); }
.leaderboard-emoji { font-size: 20px; line-height: 1; width: 28px; text-align: center; }
.leaderboard-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.leaderboard-count { font-size: 11px; color: var(--text-muted); background: var(--bg-secondary); padding: 1px 7px; border-radius: 10px; }
.lounge-empty-sm { color: var(--text-muted); font-size: 13px; padding: 8px 0; }
.lounge-title { font-size: 28px; font-weight: 800; color: var(--text-primary); margin: 0 0 12px; letter-spacing: -0.5px; }
.lounge-featured-member { display: inline-flex; align-items: center; gap: 8px; }
.featured-member-link { display: flex; align-items: center; gap: 8px; text-decoration: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 16px; transition: all var(--transition); }
.featured-member-link:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.featured-member-link img { border-radius: 50%; width: 36px; height: 36px; }
.featured-member-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.featured-member-label { font-size: 11px; color: var(--accent); font-weight: 600; background: var(--accent-light); padding: 2px 8px; border-radius: 4px; }
.lounge-chat-layout { display: flex; gap: 16px; align-items: flex-start; }
.lounge-chat-main { flex: 1; min-width: 0; }
.lounge-sidebar { width: 240px; flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lounge-sidebar-header { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.lounge-sidebar-header h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.lounge-sidebar-members { padding: 8px; max-height: 360px; overflow-y: auto; }
.lounge-sidebar-member { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); transition: background var(--transition); cursor: default; }
.lounge-sidebar-member:hover { background: var(--bg-secondary); }
.lounge-composer-row { display: flex; gap: 16px; margin-top: 12px; }
.lounge-composer-row .lounge-composer { flex: 1; }
.lounge-composer-spacer { width: 240px; flex-shrink: 0; }
.sidebar-member-avatar img { border-radius: 50%; width: 28px; height: 28px; }
.sidebar-member-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar-member-name { font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.sidebar-member-status { font-size: 10px; color: var(--text-muted); }
.sidebar-member-status.online { color: #22C55E; }
.sidebar-dm-btn { background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 13px; transition: all var(--transition); flex-shrink: 0; line-height: 1; }
.sidebar-dm-btn:hover { background: var(--accent-light); border-color: var(--accent); }
.sidebar-no-members { padding: 20px; text-align: center; color: var(--text-muted); font-size: 12px; }
.sidebar-self { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); margin-top: 4px; }
.sidebar-self .sidebar-member-avatar img { width: 24px; height: 24px; }
@media (max-width: 768px) { .lounge-chat-layout { flex-direction: column; } .lounge-sidebar { width: 100%; } .lounge-sidebar-members { max-height: 200px; display: flex; flex-wrap: wrap; gap: 4px; } .lounge-sidebar-member { flex: 0 0 auto; } }

/* Nav menu spacing fix */
.main-nav ul { gap: 4px; }
.main-nav a { font-size: 13px; padding: 6px 10px; }
.header-inner { gap: 12px; }
@media (max-width: 900px) { .main-nav ul { gap: 2px; } .main-nav a { font-size: 12px; padding: 4px 6px; } }
/* Tighter nav to prevent wrapping */
.main-nav ul { gap: 2px; }
.main-nav a { font-size: 12px; padding: 4px 8px; }
.site-logo { font-size: 20px; }
.site-logo .logo-icon { font-size: 22px; }
.header-inner { gap: 8px; }

@media (max-width: 1100px) {
  .main-nav a { font-size: 11px; padding: 4px 6px; }
  .site-logo { font-size: 18px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { font-size: 11px; padding: 4px 8px; }
  .header-actions .btn span { display: none; }
}

@media (max-width: 900px) {
  .main-nav a { font-size: 11px; padding: 3px 5px; }
  .main-nav ul { gap: 1px; }
}

/* ====== COMMENTS SECTION ====== */
.uc-comments-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.uc-comments-list {
    margin-bottom: 24px;
}

.uc-comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.uc-comment:last-child {
    border-bottom: none;
}

.uc-comment-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.uc-comment-body {
    flex: 1;
    min-width: 0;
}

.uc-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.uc-comment-author {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.uc-comment-author a {
    color: var(--text-primary);
    text-decoration: none;
}

.uc-comment-author a:hover {
    color: var(--accent);
}

.uc-comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.uc-comment-mod {
    font-size: 12px;
    color: var(--accent-warm);
    display: block;
    margin-bottom: 4px;
}

.uc-comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.uc-comment-text p {
    margin: 0 0 8px 0;
}

.uc-comment-text p:last-child {
    margin-bottom: 0;
}

.uc-comment-reply {
    margin-top: 4px;
}

.uc-comment-reply a {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.uc-comment-reply a:hover {
    text-decoration: underline;
}

.uc-no-comments {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.uc-comments-nav {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 13px;
}

.uc-comments-nav a {
    color: var(--accent);
    text-decoration: none;
}

/* Comment Form */
.uc-comment-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.uc-comment-form-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.uc-comment-form-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.uc-comment-form-meta strong {
    color: var(--text-primary);
}

.uc-comment-field {
    margin-bottom: 12px;
}

.uc-comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: border-color var(--transition);
}

.uc-comment-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.uc-comment-captcha {
    margin-bottom: 16px;
}

.uc-comment-captcha label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.uc-comment-captcha label strong {
    color: var(--text-primary);
}

.uc-comment-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    box-sizing: border-box;
    transition: border-color var(--transition);
}

.uc-comment-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.uc-comment-submit-row {
    display: flex;
    justify-content: flex-end;
}

.uc-comment-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.uc-comment-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.uc-comment-submit:active {
    transform: translateY(0);
}

/* Login Prompt */
.uc-comment-login-prompt {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 20px;
}

.uc-comment-login-prompt p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.uc-comment-login-prompt a {
    text-decoration: none;
}

.uc-comment-login-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin: 0 6px;
}

.uc-comment-login-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.uc-comment-join-btn {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin: 0 6px;
}

.uc-comment-join-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}






/* More Events Click-to-Expand */
.more-events.expanded {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
}

/* ===== BUDDYPRESS MEMBERS DIRECTORY ===== */
.bp-navs.directory-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.bp-navs.directory-nav li {
    list-style: none;
}

.bp-navs.directory-nav li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.bp-navs.directory-nav li a:hover {
    color: var(--text-primary);
}

.bp-navs.directory-nav li.current a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Search & filters bar */
.bp-dir-search-form,
.item-list-tabs #dir-search,
#dir-search,
.search-and-filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bp-dir-search-form input[type="search"],
#dir-search input[type="search"],
.search-and-filters-bar input[type="search"] {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    width: 260px;
    outline: none;
    transition: border var(--transition);
}

.bp-dir-search-form input[type="search"]:focus,
#dir-search input[type="search"]:focus {
    border-color: var(--accent);
}

.bp-dir-search-form input[type="submit"],
#dir-search input[type="submit"],
.search-and-filters-bar input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.bp-dir-search-form input[type="submit"]:hover {
    background: var(--accent-hover);
}

/* Sort dropdown */
#dir-search select,
.search-and-filters-bar select,
.item-list-tabs select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

/* Member list items */
#members-dir-list .bp-list,
.dir-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

#members-dir-list .bp-list li,
.dir-list li {
    list-style: none;
}

#members-dir-list .item-entry,
.dir-list .item-entry,
#members-dir-list .member-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition);
}

#members-dir-list .item-entry:hover,
.dir-list .item-entry:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Avatar */
#members-dir-list .item-avatar,
.dir-list .item-avatar {
    margin-bottom: 12px;
}

#members-dir-list .item-avatar img,
.dir-list .item-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
}

/* Member name */
#members-dir-list .item-title,
.dir-list .item-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

#members-dir-list .item-title a,
.dir-list .item-title a {
    color: var(--text-primary);
    text-decoration: none;
}

#members-dir-list .item-title a:hover {
    color: var(--accent);
}

/* Last active / meta */
#members-dir-list .item-meta,
.dir-list .item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Action buttons */
#members-dir-list .action,
.dir-list .action {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

#members-dir-list .action .generic-button a,
.dir-list .action .generic-button a,
#members-dir-list .action .generic-button button,
.dir-list .action .generic-button button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    cursor: pointer;
}

#members-dir-list .action .generic-button a:hover,
.dir-list .action .generic-button a:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* Pagination */
#members-dir-list .bp-pagination,
.dir-list .bp-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

#members-dir-list .bp-pagination .page-numbers,
.dir-list .bp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
}

#members-dir-list .bp-pagination .page-numbers.current,
.dir-list .bp-pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

#members-dir-list .bp-pagination .page-numbers:hover,
.dir-list .bp-pagination .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Loading state */
#bp-ajax-loader {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    #members-dir-list .bp-list,
    .dir-list {
        grid-template-columns: 1fr;
    }
    
    .bp-dir-search-form,
    .search-and-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bp-dir-search-form input[type="search"],
    #dir-search input[type="search"] {
        width: 100%;
    }
}


/* Members directory: flex column + pagination top & bottom */
#members-dir-list {
    display: flex;
    flex-direction: column;
}
#members-dir-list .bp-pagination:first-of-type,
.dir-list .bp-pagination:first-of-type {
    order: -1;
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    width: 100%;
}
#members-dir-list .bp-pagination:last-of-type,
.dir-list .bp-pagination:last-of-type {
    order: 1;
    margin-top: 16px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    width: 100%;
}
/* Member cards: horizontal layout, name on one line */
#members-dir-list .item-entry,
.dir-list .item-entry,
#members-dir-list .member-entry {
    flex-direction: row;
    text-align: left;
    padding: 16px;
    gap: 12px;
}
#members-dir-list .item-avatar,
.dir-list .item-avatar {
    margin-bottom: 0;
    flex-shrink: 0;
}
#members-dir-list .item-avatar img,
.dir-list .item-avatar img {
    width: 48px;
    height: 48px;
}
#members-dir-list .item-title,
.dir-list .item-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 2px;
}
#members-dir-list .item-meta,
.dir-list .item-meta {
    margin-bottom: 0;
}
#members-dir-list .item-content,
.dir-list .item-content {
    min-width: 0;
    flex: 1;
}
#members-dir-list .action,
.dir-list .action {
    margin-top: 8px;
}

/* Event modal website link */
.event-modal-website { margin-top: 12px; }
.event-modal-website a { color: var(--accent); text-decoration: underline; word-break: break-all; }
