/* ============================================
   Tales From Love — Complete UI — 2025 Redesign
   Theme: Romantic editorial — Burgundy, Blush, Gold
   Fonts: Playfair Display (display) | Inter (body)
   ============================================ */

/* ── RESET & CUSTOM PROPERTIES ─────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand palette */
  --rose: #8B1A2F;
  --rose-dark: #6B1526;
  --rose-light: #B03050;
  --cream: #FBF7F2;
  --cream-dark: #F0E8DD;
  --gold: #C49A2A;
  --gold-light: #DDBD6A;
  --gold-soft: #F8F0DC;

  /* Neutrals */
  --text-dark: #1A1A2E;
  --text-body: #3D3D50;
  --text-muted: #6E6E82;
  --text-light: #9898AA;
  --border: rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.12);
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 36px rgba(139,26,47,0.10), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(139,26,47,0.14), 0 8px 20px rgba(0,0,0,0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--rose);
  transition: var(--transition-fast);
}
a:hover { color: var(--rose-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
html, body { overflow-x: hidden; }

/* ── UTILITIES ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.65rem;
  color: var(--text-dark);
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
}
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(139,26,47,0.25);
}
.btn-primary:hover {
  background: var(--rose-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,26,47,0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #D4A84A);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(196,154,42,0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #B38A24, var(--gold));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,154,42,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 2px solid var(--rose);
}
.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-nav-cta {
  background: var(--rose);
  color: var(--white) !important;
  padding: 9px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(139,26,47,0.2);
}
.btn-nav-cta:hover {
  background: var(--rose-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139,26,47,0.3);
}

/* ── BADGES ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.badge-category {
  background: linear-gradient(135deg, var(--gold), #D4A84A);
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
  position: relative;
}
.badge-category:hover {
  background: var(--rose);
  color: var(--white);
  transform: scale(1.05);
}

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }
.fade-in:nth-child(6) { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.01em;
}
.navbar-logo span { color: var(--gold); }
.navbar-logo:hover { color: var(--rose); opacity: 0.9; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-links a {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: var(--transition);
  border-radius: 1px;
}
.navbar-links a:hover::after,
.navbar-links a.active::after { width: 100%; }
.navbar-links a:hover,
.navbar-links a.active { color: var(--rose); }

.nav-search-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 6px;
  border-radius: 8px;
}
.nav-search-btn:hover { color: var(--rose); background: rgba(139,26,47,0.06); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── SEARCH OVERLAY ────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.search-overlay.active { display: flex; opacity: 1; }
.search-overlay-inner { width: 90%; max-width: 560px; text-align: center; }
.search-overlay input {
  width: 100%;
  padding: 18px 28px;
  font-size: 1.1rem;
  border: none;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.search-overlay .close-search {
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  margin-top: 20px;
  display: inline-block;
  background: none;
  border: none;
  opacity: 0.6;
  transition: var(--transition);
}
.search-overlay .close-search:hover { opacity: 1; }

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #8B1A2F 0%, #5C0F1D 50%, #3A0A13 100%);
  color: var(--white);
  padding: 80px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196,154,42,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(176,48,80,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero > div { position: relative; z-index: 1; }
.hero h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   FEATURED STORY
   ═══════════════════════════════════════════════ */
.featured-section { padding: 56px 0 24px; }

.featured-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  max-height: 400px;
}
.featured-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}
.featured-card-img {
  flex: 0 0 42%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}
.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-card:hover .featured-card-img img { transform: scale(1.05); }

.featured-card-body {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-label {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  width: fit-content;
}
.featured-card-body h2 {
  font-size: 1.65rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.featured-card-body .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.featured-card-body .meta .meta-category {
  color: var(--gold);
  font-weight: 600;
  transition: var(--transition);
}
.featured-card-body .meta .meta-category:hover { color: var(--rose); }
.featured-card-body p {
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   CATEGORY FILTER PILLS
   ═══════════════════════════════════════════════ */
.category-filter-bar {
  padding: 4px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-filter-bar::-webkit-scrollbar { display: none; }

.category-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.category-pill {
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.category-pill:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(139,26,47,0.04);
}
.category-pill.active {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
  box-shadow: 0 2px 8px rgba(139,26,47,0.2);
}

/* ═══════════════════════════════════════════════
   STORIES GRID
   ═══════════════════════════════════════════════ */
.stories-section { padding: 52px 0 64px; }

.stories-layout {
  display: flex;
  gap: 40px;
}
.stories-main { flex: 1; min-width: 0; }

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

/* ── STORY CARD ────────────────────────────────── */
.story-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.story-card-img {
  height: 190px;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-card:hover .story-card-img img { transform: scale(1.08); }
.story-card-img .badge { position: absolute; top: 12px; left: 12px; }

.story-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.story-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Playfair Display', serif;
}
.story-card-body h3 a { color: var(--text-dark); }
.story-card-body h3 a:hover { color: var(--rose); }

.story-card-body .excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}
.story-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 6px;
}
.story-card-footer .author {
  font-weight: 600;
  color: var(--rose);
}
.story-card-footer .story-card-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-card-footer .read-time { color: var(--text-light); font-size: 0.75rem; }
.story-card-footer .comments-count { display: flex; align-items: center; gap: 4px; }

.load-more-wrap { text-align: center; padding: 20px 0; }

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
.sidebar { flex: 0 0 300px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-light);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
.sidebar-widget .top-story-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget .top-story-item:last-child { border-bottom: none; }
.sidebar-widget .top-story-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 24px;
}
.sidebar-widget .top-story-info { display: flex; flex-direction: column; gap: 3px; }
.sidebar-widget .top-story-title { font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.sidebar-widget .top-story-title a { color: var(--text-dark); }
.sidebar-widget .top-story-title a:hover { color: var(--rose); }
.sidebar-widget .top-story-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gold);
  transition: var(--transition);
}
.sidebar-widget .top-story-cat:hover { color: var(--rose); }

.sidebar-widget .cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.sidebar-widget .cat-list a:last-child { border-bottom: none; }
.sidebar-widget .cat-list a:hover { color: var(--rose); }
.sidebar-widget .cat-count {
  background: var(--cream);
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.fb-widget-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.fb-widget-link:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.fb-widget-img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.fb-widget-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  text-align: center;
  color: #1877F2;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}
.fb-widget-fallback:hover { background: #1877F2; color: var(--white); }

/* ═══════════════════════════════════════════════
   SINGLE STORY PAGE
   ═══════════════════════════════════════════════ */
.story-page { padding: 48px 0 72px; }
.story-page-layout { max-width: 780px; margin: 0 auto; }

.story-header { margin-bottom: 32px; }
.story-header h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: var(--text-dark);
  line-height: 1.2;
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.story-meta i { margin-right: 4px; opacity: 0.6; }
.story-meta .author-name { font-weight: 700; color: var(--rose); }

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.share-btn:hover { transform: translateY(-2px); color: var(--white); box-shadow: var(--shadow-md); }
.share-btn.facebook { background: #1877F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter { background: #1A1A2E; }
.share-btn.copy-link { background: var(--text-muted); }

/* Story Body */
.story-body {
  font-size: 1.125rem;
  line-height: 1.95;
  color: var(--text-dark);
  margin-bottom: 48px;
}
.story-body p {
  margin-bottom: 1.6rem;
}

/* Cover Image */
.story-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

/* ── VOTE SECTION ──────────────────────────────── */
.vote-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
.vote-section h3 {
  margin-bottom: 22px;
  font-size: 1.3rem;
  color: var(--text-dark);
}
.vote-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.vote-btn {
  padding: 13px 32px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vote-btn.real {
  background: #F0FAF0;
  color: #2E7D32;
  border-color: #A5D6A7;
}
.vote-btn.real:hover { background: #2E7D32; color: var(--white); transform: translateY(-2px); }
.vote-btn.fake {
  background: #FFF0F2;
  color: #C62828;
  border-color: #EF9A9A;
}
.vote-btn.fake:hover { background: #C62828; color: var(--white); transform: translateY(-2px); }
.vote-count { font-size: 0.85rem; color: var(--text-light); margin-top: 14px; }

/* ── COMMENTS ──────────────────────────────────── */
.comments-section { margin-bottom: 48px; }
.comments-section h2 { font-size: 1.5rem; margin-bottom: 28px; color: var(--text-dark); }

.comment-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.comment-form .form-group { margin-bottom: 14px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--cream);
  color: var(--text-dark);
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(139,26,47,0.1);
}
.comment-form textarea { min-height: 100px; resize: vertical; }

.comments-list { display: flex; flex-direction: column; gap: 16px; }

.comment-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.comment-item .comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-item .comment-name { font-weight: 700; color: var(--rose); font-size: 0.95rem; }
.comment-item .comment-time { font-size: 0.8rem; color: var(--text-light); }
.comment-item .comment-text { margin-top: 8px; color: var(--text-body); line-height: 1.65; }
.comment-item .reply-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.comment-item .reply-btn:hover { color: var(--rose); }

/* Reply threading */
.comment-replies {
  padding-left: 28px;
  border-left: 2px solid var(--gold-light);
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -4px;
  margin-bottom: 12px;
}
.comment-reply {
  background: var(--cream);
  box-shadow: none;
  border: 1px solid var(--border);
  padding: 16px;
}
.comment-reply .comment-name { font-size: 0.88rem; }

.reply-form-inline {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 18px;
  margin-left: 44px;
  border: 1.5px solid var(--border);
  margin-top: -4px;
  margin-bottom: 12px;
}
.reply-form-inline input,
.reply-form-inline textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  transition: var(--transition);
  margin-bottom: 10px;
}
.reply-form-inline input:focus,
.reply-form-inline textarea:focus { outline: none; border-color: var(--rose); }
.reply-form-inline textarea { min-height: 70px; resize: vertical; }
.reply-form-actions { display: flex; gap: 8px; }
.reply-form-actions .btn { padding: 8px 18px; font-size: 0.82rem; }

/* ── RELATED STORIES ───────────────────────────── */
.related-section { padding: 48px 0 56px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ═══════════════════════════════════════════════
   CATEGORIES PAGE
   ═══════════════════════════════════════════════ */
.categories-page { padding: 64px 0; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}
.category-card .cat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.category-card .cat-story-count { color: var(--text-muted); font-size: 0.88rem; }

.category-stories-section { padding: 40px 0; display: none; }
.category-stories-section.active { display: block; }
.category-back-btn { margin-bottom: 24px; }

/* ═══════════════════════════════════════════════
   SUBMIT PAGE
   ═══════════════════════════════════════════════ */
.submit-page { padding: 64px 0; }
.submit-form-wrap { max-width: 700px; margin: 0 auto; }
.submit-form-wrap .subheading {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.6;
}

.submit-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--cream);
  color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(139,26,47,0.08);
  background: var(--white);
}
.form-group textarea { min-height: 250px; resize: vertical; }
.form-group input[type="file"] { padding: 12px; cursor: pointer; }

.form-group .checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-group .checkbox-wrap input[type="checkbox"] { width: auto; margin-top: 4px; }
.char-count { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }

.submission-rules {
  margin-top: 36px;
  padding: 28px;
  background: var(--gold-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.submission-rules h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--text-dark); }
.submission-rules ul { list-style: disc; padding-left: 20px; }
.submission-rules li { margin-bottom: 8px; color: var(--text-body); font-size: 0.9rem; line-height: 1.6; }

.success-msg {
  display: none;
  background: #F0FAF0;
  color: #2E7D32;
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid #A5D6A7;
}

/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */
.about-page { padding: 64px 0; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 16px;
}
.about-content .about-tagline {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
}

.about-block { margin-bottom: 48px; }
.about-block h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--text-dark); }
.about-block p,
.about-block li {
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 12px;
}
.about-block ol, .about-block ul { padding-left: 20px; }
.about-block ol { list-style: decimal; }
.about-block ul { list-style: disc; }

.how-it-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.step-card {
  text-align: center;
  padding: 28px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--rose); }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════ */
.admin-page { padding: 40px 0; }
.admin-login { max-width: 420px; margin: 100px auto; text-align: center; }
.admin-login h1 { margin-bottom: 24px; }
.admin-login input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  text-align: center;
  background: var(--cream);
}
.admin-login input:focus { outline: none; border-color: var(--rose); background: var(--white); }

.admin-panel { display: none; }
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--cream-dark);
  padding-bottom: 0;
}
.admin-tab {
  padding: 12px 24px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  cursor: pointer;
  background: var(--cream);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  transition: var(--transition);
  color: var(--text-muted);
}
.admin-tab:hover { color: var(--rose); }
.admin-tab.active { background: var(--rose); color: var(--white); }

.admin-story-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.admin-story-info { flex: 1; }
.admin-story-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.admin-story-info .admin-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.admin-story-info .admin-excerpt { color: var(--text-body); font-size: 0.9rem; }
.admin-actions { display: flex; gap: 8px; flex-shrink: 0; }

.admin-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.admin-btn.approve { background: #F0FAF0; color: #2E7D32; }
.admin-btn.approve:hover { background: #2E7D32; color: var(--white); }
.admin-btn.edit { background: #FFF3E0; color: #E65100; }
.admin-btn.edit:hover { background: #E65100; color: var(--white); }
.admin-btn.reject { background: #FFF0F2; color: #C62828; }
.admin-btn.reject:hover { background: #C62828; color: var(--white); }
.admin-btn.feature { background: var(--gold-soft); color: var(--gold); }
.admin-btn.feature:hover { background: var(--gold); color: var(--white); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #1A1A2E 0%, #141425 100%);
  color: rgba(255,255,255,0.85);
  padding: 56px 24px 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}
.footer h3 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.footer p, .footer a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer a:hover { color: var(--gold-light); }
.footer-email {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 3px;
}
.footer-email:hover { color: #fff; text-decoration-color: #fff; }

.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials .social-icon:hover { color: #fff; opacity: 0.85; }
.footer ul li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════
   UI COMPONENTS
   ═══════════════════════════════════════════════ */

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139,26,47,0.3);
  transition: var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--rose-dark); transform: translateY(-3px); }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.92rem;
  z-index: 3000;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { text-align: center; padding: 48px; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 620px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal h2 { margin-bottom: 24px; }
.modal .form-group textarea { min-height: 200px; }

/* No Results */
.no-results { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.no-results h3 { color: var(--text-muted); margin-bottom: 12px; font-size: 1.3rem; }

/* Flash messages */
.flash-msg { border-radius: var(--radius-sm) !important; }

/* ═══════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════ */
.load-more-wrap .btn { font-size: 0.85rem !important; }

/* ═══════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  background: var(--cream);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 14px;
  line-height: 1;
  opacity: 0.45;
  transition: var(--transition);
  text-decoration: none;
}
.lang-btn:hover { opacity: 0.8; transform: scale(1.08); }
.lang-btn.active { opacity: 1; background: var(--white); box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════════════
   SOCIAL ICONS
   ═══════════════════════════════════════════════ */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.92rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-icon:hover { transform: translateY(-3px); opacity: 0.85; }
.social-icon.facebook { background: #1877F2; }
.social-icon.twitter { background: #1A1A2E; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card-body h2 { font-size: 1.4rem; }
  .sidebar { flex: 0 0 260px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Navbar ────────────────────────────────── */
  .navbar-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 24px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
  .navbar-links.open { transform: translateY(0); }
  .navbar-links a {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    width: 100%;
  }
  .navbar-links a:hover,
  .navbar-links a.active { background: rgba(139,26,47,0.05); }
  .navbar-links a::after { display: none; }
  .navbar-links .btn-nav-cta {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 0.9rem;
  }
  .navbar-links .nav-search-btn {
    padding: 12px 16px;
    border-radius: 10px;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
  }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Hero ──────────────────────────────────── */
  .hero { padding: 56px 20px 64px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }

  /* ── Featured Story ────────────────────────── */
  .featured-section { padding: 40px 0 16px; }
  .featured-card { flex-direction: column; max-height: none; }
  .featured-card-img { min-height: 220px; flex: none; }
  .featured-card-body { padding: 28px; }
  .featured-card-body h2 { font-size: 1.35rem; }

  /* ── Stories Layout ────────────────────────── */
  .stories-section { padding: 40px 0 48px; }
  .stories-layout { flex-direction: column; gap: 32px; }
  .sidebar { flex: auto; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  /* ── Category Pills (scrollable) ───────────── */
  .category-filter-bar { padding: 4px 0 12px; }
  .category-pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
  }
  .category-pills::-webkit-scrollbar { display: none; }
  .category-pill { flex-shrink: 0; }

  .section-title { font-size: 1.4rem; }

  /* ── Single Story Page ─────────────────────── */
  .story-page { padding: 32px 0 48px; }
  .story-header h1 { font-size: 1.9rem; }
  .story-body { font-size: 1.05rem; line-height: 1.85; }
  .story-meta {
    font-size: 0.84rem;
    gap: 10px;
  }
  .story-cover-img {
    max-height: 320px;
    border-radius: var(--radius);
  }

  /* ── Share Buttons ─────────────────────────── */
  .share-buttons { gap: 8px; }
  .share-btn { padding: 9px 14px; font-size: 0.78rem; }

  /* ── Vote Section ──────────────────────────── */
  .vote-section { padding: 28px 22px; }
  .vote-buttons { flex-direction: column; align-items: center; }
  .vote-btn { width: 100%; max-width: 300px; justify-content: center; }

  /* ── Comments ──────────────────────────────── */
  .comment-form { padding: 22px; }
  .comment-replies { padding-left: 16px; margin-left: 8px; }
  .reply-form-inline { margin-left: 24px; padding: 14px; }

  /* ── Story Cards ───────────────────────────── */
  .story-card-img { height: 160px; }
  .story-card-body { padding: 16px; }
  .story-card-body h3 { font-size: 0.95rem; }
  .story-card-body .excerpt { font-size: 0.82rem; }
  .story-card-footer { font-size: 0.72rem; }

  /* ── Categories Page ───────────────────────── */
  .category-card { padding: 32px 20px; }
  .category-card .cat-icon { font-size: 2.5rem; }

  /* ── Submit / About / Cats Page Padding ───── */
  .categories-page, .submit-page, .about-page { padding: 44px 0; }
  .submit-form { padding: 28px; }
  .about-content h1 { font-size: 2.2rem; }

  /* ── Footer ────────────────────────────────── */
  .footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-it-works { grid-template-columns: repeat(2, 1fr); }

  /* ── Admin ─────────────────────────────────── */
  .admin-story-card { flex-direction: column; }

  /* ── Misc ──────────────────────────────────── */
  .btn { padding: 10px 22px; font-size: 0.84rem; }
  .back-to-top { width: 42px; height: 42px; bottom: 20px; right: 20px; }
  .modal { padding: 28px 22px; max-height: 85vh; }
  .modal h2 { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Small Mobile
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* ── Container / Navbar ────────────────────── */
  .container { padding: 0 16px; }
  .navbar { padding: 0 12px; }
  .navbar .container { height: 58px; }
  .navbar-logo { font-size: 1.2rem; }
  .navbar-links { top: 58px; padding: 16px; }

  /* ── Hero ──────────────────────────────────── */
  .hero { padding: 44px 16px 52px; }
  .hero h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
  .hero p { font-size: 0.92rem; margin-bottom: 1.6rem; }
  .hero .btn-gold { padding: 12px 28px; font-size: 0.88rem; }

  /* ── Featured Story ────────────────────────── */
  .featured-card-img { min-height: 180px; }
  .featured-card-body { padding: 20px; }
  .featured-card-body h2 { font-size: 1.15rem; }
  .featured-card-body p { font-size: 0.85rem; }
  .featured-label { font-size: 0.68rem; padding: 3px 12px; }

  /* ── Story Grids ───────────────────────────── */
  .stories-grid, .related-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.2rem; }
  .stories-section { padding: 32px 0 40px; }

  /* ── Story Cards ───────────────────────────── */
  .story-card-img { height: 200px; }
  .story-card-body { padding: 18px; }
  .story-card-body h3 { font-size: 1.05rem; }
  .story-card-body .excerpt { font-size: 0.88rem; -webkit-line-clamp: 3; }
  .story-card-footer { font-size: 0.78rem; padding-top: 14px; }

  /* ── Single Story Page ─────────────────────── */
  .story-page { padding: 24px 0 40px; }
  .story-header h1 { font-size: 1.5rem; line-height: 1.25; }
  .story-meta { flex-direction: column; gap: 6px; font-size: 0.8rem; }
  .story-body { font-size: 1rem; line-height: 1.8; margin-bottom: 36px; }
  .story-body p { margin-bottom: 1.2rem; }
  .story-cover-img {
    max-height: 240px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
  }

  /* ── Share Buttons ─────────────────────────── */
  .share-buttons { flex-direction: column; margin-bottom: 28px; }
  .share-btn { justify-content: center; padding: 11px 18px; font-size: 0.84rem; }

  /* ── Vote Section ──────────────────────────── */
  .vote-section { padding: 24px 18px; margin-bottom: 36px; }
  .vote-section h3 { font-size: 1.1rem; }
  .vote-btn { padding: 12px 24px; font-size: 0.92rem; }

  /* ── Comments ──────────────────────────────── */
  .comments-section h2 { font-size: 1.2rem; margin-bottom: 20px; }
  .comment-form { padding: 18px; }
  .comment-form input,
  .comment-form textarea { padding: 12px 14px; font-size: 0.9rem; }
  .comment-item { padding: 16px; }
  .comment-item .comment-text { font-size: 0.9rem; }
  .comment-replies { padding-left: 12px; margin-left: 4px; }
  .reply-form-inline { margin-left: 16px; padding: 12px; }
  .reply-form-inline input,
  .reply-form-inline textarea { padding: 10px 12px; font-size: 0.85rem; }

  /* ── Categories Page ───────────────────────── */
  .categories-page { padding: 36px 0; }
  .category-card { padding: 28px 18px; }
  .category-card .cat-icon { font-size: 2.2rem; margin-bottom: 12px; }
  .category-card h3 { font-size: 0.95rem; }

  /* ── Submit Page ───────────────────────────── */
  .submit-page { padding: 36px 0; }
  .submit-form-wrap .subheading { font-size: 0.95rem; margin-bottom: 28px; }
  .submit-form { padding: 20px 18px; }
  .form-group label { font-size: 0.88rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 12px 14px; font-size: 0.9rem; }
  .form-group textarea { min-height: 200px; }
  .submission-rules { padding: 20px; }
  .submission-rules h3 { font-size: 1rem; }

  /* ── About Page ────────────────────────────── */
  .about-page { padding: 36px 0; }
  .about-content h1 { font-size: 1.75rem; }
  .about-content .about-tagline { font-size: 0.95rem; margin-bottom: 36px; }
  .about-block h2 { font-size: 1.25rem; }
  .how-it-works { grid-template-columns: 1fr; gap: 14px; }
  .step-card { padding: 22px 16px; }
  .step-card .step-num { width: 38px; height: 38px; font-size: 0.95rem; }

  /* ── Sidebar ───────────────────────────────── */
  .sidebar-widget { padding: 20px; }
  .sidebar-widget h3 { font-size: 1rem; }
  .sidebar-widget .top-story-num { font-size: 1.25rem; }

  /* ── Footer ────────────────────────────────── */
  .footer { padding: 36px 16px 24px; }
  .footer h3 { font-size: 1rem; }
  .footer p, .footer a { font-size: 0.84rem; }
  .footer-bottom { font-size: 0.75rem; }

  /* ── UI Components ─────────────────────────── */
  .btn { padding: 10px 20px; font-size: 0.82rem; }
  .btn-nav-cta { font-size: 0.82rem; padding: 10px 18px; }
  .badge { padding: 3px 10px; font-size: 0.65rem; }

  .toast {
    left: 12px;
    right: 12px;
    transform: translateX(0) translateY(100px);
    text-align: center;
    font-size: 0.85rem;
    padding: 12px 16px;
  }
  .toast.show { transform: translateX(0) translateY(0); }

  .search-overlay input { padding: 16px 20px; font-size: 1rem; border-radius: 14px; }
  .search-overlay .close-search { font-size: 1.6rem; margin-top: 16px; }

  .modal { padding: 24px 18px; border-radius: 16px; }
  .modal h2 { font-size: 1.1rem; }

  .back-to-top { width: 40px; height: 40px; bottom: 16px; right: 16px; font-size: 0.9rem; }

  .admin-actions { flex-direction: column; width: 100%; }
  .admin-btn { width: 100%; text-align: center; }

  .no-results { padding: 48px 16px; }
  .no-results h3 { font-size: 1.1rem; }

  /* ── Pagination (touch-friendly) ───────────── */
  .load-more-wrap .btn { padding: 12px 28px; font-size: 0.88rem !important; }
}

/* ═══════════════════════════════════════════════
   TOUCH DEVICE OPTIMIZATIONS
   ═══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch devices */
  .story-card:hover { transform: none; }
  .category-card:hover { transform: none; }
  .featured-card:hover { transform: none; }
  .step-card:hover { transform: none; }

  /* Ensure tap targets are at least 44px */
  .navbar-links a { min-height: 44px; display: flex; align-items: center; }
  .category-pill { min-height: 40px; }
  .vote-btn { min-height: 48px; }
  .share-btn { min-height: 44px; }
  .comment-item .reply-btn { min-height: 36px; display: inline-flex; align-items: center; }
  .footer ul li a { min-height: 40px; display: inline-flex; align-items: center; }
}
