/* ============================================
   UNTOLDEN — World-Class Dark Theme
   Background: #0a0a0b main, #121214 cards
   Accent: #f5a623 warm amber/gold
   Text: #ededef primary, #8b8b93 secondary
   Font: Inter, system fallback
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0a0a0b;
  color: #ededef;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #f5a623;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #f7b84a;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #ededef;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
  color: #8b8b93;
  margin-bottom: 1rem;
  line-height: 1.8;
}

::selection {
  background: rgba(245, 166, 35, 0.3);
  color: #fff;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navbar (Glassmorphism) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ededef;
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

.logo:hover {
  color: #f5a623;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: #8b8b93;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  color: #ededef;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links .nav-profile {
  color: #f5a623;
}

.nav-links .nav-profile:hover {
  background: rgba(245, 166, 35, 0.1);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: #ededef;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.25s ease;
}

.mobile-menu:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* --- Buttons --- */
.btn-primary, .btn-ghost, button[type="submit"], .btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: #f5a623;
  color: #0a0a0b;
}

.btn-primary:hover {
  background: #f7b84a;
  color: #0a0a0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

.btn-ghost {
  background: transparent;
  color: #8b8b93;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ededef;
  background: rgba(255, 255, 255, 0.05);
}

.btn-accent {
  background: linear-gradient(135deg, #f5a623, #e8941e);
  color: #0a0a0b;
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.35);
  color: #0a0a0b;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, #ededef 0%, #f5a623 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: #8b8b93;
  position: relative;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.1);
  color: #f5a623;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

/* --- Stats Section --- */
.stats-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f5a623;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #8b8b93;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* --- Section Titles --- */
.section {
  padding: 5rem 0;
}

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

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

.section-header p {
  max-width: 500px;
  margin: 0 auto;
  color: #8b8b93;
}

/* --- Story Cards Grid --- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: #121214;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.story-card.mood-love::before { background: linear-gradient(90deg, #ff6b6b, #ee5a24); }
.story-card.mood-regret::before { background: linear-gradient(90deg, #4834d4, #686de0); }
.story-card.mood-secret::before { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.story-card.mood-letter::before { background: linear-gradient(90deg, #f5a623, #f7b84a); }
.story-card.mood-happy::before { background: linear-gradient(90deg, #26de81, #20bf6b); }
.story-card.mood-sad::before { background: linear-gradient(90deg, #4a69bd, #6a89cc); }

.story-card .story-mood {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.story-card .story-mood.love { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); }
.story-card .story-mood.regret { color: #686de0; background: rgba(104, 109, 224, 0.1); }
.story-card .story-mood.secret { color: #a29bfe; background: rgba(162, 155, 254, 0.1); }
.story-card .story-mood.letter { color: #f5a623; background: rgba(245, 166, 35, 0.1); }
.story-card .story-mood.happy { color: #26de81; background: rgba(38, 222, 129, 0.1); }
.story-card .story-mood.sad { color: #6a89cc; background: rgba(106, 137, 204, 0.1); }

.story-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card p {
  font-size: 0.875rem;
  color: #8b8b93;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.story-card .story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #6b6b73;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Category Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.category-card {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.category-card .category-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.category-card .category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ededef;
}

.category-card .category-count {
  font-size: 0.75rem;
  color: #6b6b73;
  margin-top: 0.25rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 550px;
  margin: 0 auto 2rem;
  color: #8b8b93;
}

/* --- Multi-language Showcase --- */
.language-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}

.language-badge {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8b8b93;
  transition: all 0.25s ease;
}

.language-badge:hover {
  border-color: rgba(245, 166, 35, 0.3);
  color: #f5a623;
}

/* --- Forms --- */
.auth-form {
  max-width: 420px;
  margin: 6rem auto 3rem;
  padding: 2.5rem;
  background: #121214;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-form .form-subtitle {
  text-align: center;
  color: #8b8b93;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ededef;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ededef;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b6b73;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .form-text {
  font-size: 0.8125rem;
  color: #6b6b73;
  margin-top: 0.375rem;
}

.form-submit {
  width: 100%;
  padding: 0.875rem;
  background: #f5a623;
  color: #0a0a0b;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: #f7b84a;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
  transform: translateY(-1px);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #8b8b93;
}

.form-footer a {
  color: #f5a623;
  font-weight: 600;
}

.form-error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  color: #ff6b6b;
  font-size: 0.875rem;
}

.form-success {
  background: rgba(38, 222, 129, 0.1);
  border: 1px solid rgba(38, 222, 129, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  color: #26de81;
  font-size: 0.875rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #6b6b73;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b73;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: #8b8b93;
  padding: 0.375rem 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ededef;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #6b6b73;
  margin: 0;
}

/* --- Page Content (Generic) --- */
.page-content {
  padding-top: 6rem;
  min-height: 60vh;
}

.page-content .container {
  max-width: 800px;
}

/* --- 404 Page --- */
.page-404 {
  padding: 8rem 0;
  text-align: center;
}

.page-404 h1 {
  font-size: 6rem;
  color: #f5a623;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.page-404 p {
  margin-bottom: 2rem;
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(245, 166, 35, 0); }
}

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

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }
.animate-in-delay-5 { animation-delay: 0.5s; }

.pulse-cta {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.25rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-form {
    margin: 5rem 1rem 2rem;
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-accent { color: #f5a623; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0b;
}

::-webkit-scrollbar-thumb {
  background: #2a2a30;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a45;
}

/* --- Loading Spinner --- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #f5a623;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Alert / Flash Messages --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-info {
  background: rgba(72, 126, 255, 0.1);
  border: 1px solid rgba(72, 126, 255, 0.2);
  color: #5b8dff;
}

.alert-success {
  background: rgba(38, 222, 129, 0.1);
  border: 1px solid rgba(38, 222, 129, 0.2);
  color: #26de81;
}

.alert-warning {
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  color: #f5a623;
}

.alert-error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
  color: #ff6b6b;
}

/* --- Cards (Generic) --- */
.card {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2rem 0;
  border: none;
}

/* ============================================
   STORY OF THE DAY
   ============================================ */
.story-of-day-card {
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, rgba(245,166,35,0.02) 100%);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.story-of-day-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f5a623, #f7b84a, #f5a623);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.story-of-day-card .sod-mood-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.story-of-day-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ededef;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.story-of-day-card p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #b0b0b8;
  margin-bottom: 1.5rem;
}
.story-of-day-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.875rem;
  color: #6b6b73;
}

/* ============================================
   HOME STORIES LAYOUT: FEATURED + TRENDING SIDEBAR
   ============================================ */
.home-stories-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.home-stories-main {
  min-width: 0;
}
.home-stories-sidebar {
  position: sticky;
  top: 84px;
}

/* --- Trending Widget --- */
.trending-widget {
  background: #121214;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.5rem;
}
.trending-widget h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ededef;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trending-sub {
  font-size: 0.8125rem;
  color: #6b6b73;
  margin-bottom: 1.25rem;
}
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.02);
}
.trending-item:hover {
  background: rgba(245,166,35,0.06);
  transform: translateX(3px);
}
.trending-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(245,166,35,0.1);
  color: #f5a623;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.trending-content {
  flex: 1;
  min-width: 0;
}
.trending-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ededef;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: #6b6b73;
}
.trending-mood {
  font-weight: 500;
}

/* ============================================
   FIGURE OF THE DAY
   ============================================ */
.figure-of-day-card {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: #121214;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}
.figure-of-day-card:hover {
  border-color: rgba(245,166,35,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.fod-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 16px;
  border: 3px solid rgba(245,166,35,0.2);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.fod-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fod-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(245,166,35,0.2);
}
.fod-info {
  flex: 1;
  min-width: 0;
}
.fod-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ededef;
  margin-bottom: 0.5rem;
}
.fod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.fod-info p {
  font-size: 1rem;
  line-height: 1.7;
  color: #8b8b93;
  margin-bottom: 1rem;
}
.fod-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: #6b6b73;
  margin-bottom: 1.25rem;
}
.fod-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE: Home Layout
   ============================================ */
@media (max-width: 900px) {
  .home-stories-layout {
    grid-template-columns: 1fr;
  }
  .home-stories-sidebar {
    position: static;
  }
  .figure-of-day-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .fod-tags {
    justify-content: center;
  }
  .fod-actions {
    justify-content: center;
  }
  .story-of-day-footer {
    flex-direction: column;
    text-align: center;
  }
}