/* ===== PREMIUM DESIGN SYSTEM ===== */

/* CSS Variables - Theme */
:root {
  /* Brand Colors */
  --primary-beige: #f5f2ed;
  --deep-brown: #3e2723;
  --soft-saffron: #ff8c42;
  --off-white: #fafafa;
  --warm-gray: #6d4c41;
  --light-gray: #e8e6e1;
  
  /* Typography Colors */
  --text-primary: #2c1810;
  --text-secondary: #5d4037;
  --text-muted: #8d6e63;
  --text-light: #a1887f;
  
  /* UI Colors */
  --border-light: #e0e0e0;
  --border-medium: #bdbdbd;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  --shadow-dark: rgba(0, 0, 0, 0.16);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--soft-saffron) 0%, #ff6b35 100%);
  --gradient-subtle: linear-gradient(135deg, var(--primary-beige) 0%, #fff 100%);
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Typography Scale */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.5rem;
  --font-5xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* Reset and Base Styles */
* {
  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', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--font-5xl); }
h2 { font-size: var(--font-4xl); }
h3 { font-size: var(--font-3xl); }
h4 { font-size: var(--font-2xl); }
h5 { font-size: var(--font-xl); }
h6 { font-size: var(--font-lg); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--soft-saffron);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--deep-brown);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: var(--font-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-medium);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: var(--primary-beige);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--light-gray);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-primary);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px var(--shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
}

/* Category Pills */
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--gradient-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-2xl);
  font-size: var(--font-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-light);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--primary-beige) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-serif { font-family: 'Merriweather', 'Georgia', serif; }
.font-sans { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

.bg-primary { background-color: var(--primary-beige); }
.bg-white { background-color: white; }

.shadow-sm { box-shadow: 0 1px 3px var(--shadow-light); }
.shadow-md { box-shadow: 0 4px 6px var(--shadow-light); }
.shadow-lg { box-shadow: 0 10px 15px var(--shadow-medium); }
.shadow-xl { box-shadow: 0 20px 25px var(--shadow-dark); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-xxl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mt-6 { margin-top: var(--space-xxl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }
.p-6 { padding: var(--space-xxl); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }
.gap-5 { gap: var(--space-xl); }
.gap-6 { gap: var(--space-xxl); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.transition { transition: all 0.2s ease; }
.transition-slow { transition: all 0.3s ease; }

.hover\:lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
}

/* Responsive Utilities */
@media (max-width: 767px) {
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:text-center { text-align: center; }
  .sm\:p-2 { padding: var(--space-sm); }
  .sm\:p-3 { padding: var(--space-md); }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:text-left { text-align: left; }
}

/* ===== COMPONENTS ===== */

/* Header Navigation */
.header {
  background: white;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav {
  padding: var(--space-sm) 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand h1 {
  font-family: 'Merriweather', serif;
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--deep-brown);
  margin: 0;
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.nav-brand a:hover {
  opacity: 0.8;
}

.nav-tagline {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-left: var(--space-sm);
  display: none;
}

@media (min-width: 768px) {
  .nav-tagline {
    display: block;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--font-sm);
  transition: all 0.2s ease;
  position: relative;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
  color: var(--soft-saffron);
  background: var(--gradient-subtle);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--soft-saffron);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-top: 1px solid var(--border-light);
    gap: var(--space-md);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-sm);
  }
}

/* Hero Section */
.hero {
  background: var(--gradient-subtle);
  padding: var(--space-xxl) 0 var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ff8c42" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ff8c42" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ff8c42" opacity="0.03"/><circle cx="10" cy="50" r="0.5" fill="%23ff8c42" opacity="0.03"/><circle cx="90" cy="30" r="0.5" fill="%23ff8c42" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-headline {
  font-family: 'Merriweather', serif;
  font-size: clamp(var(--font-3xl), 5vw, var(--font-5xl));
  font-weight: 700;
  color: var(--deep-brown);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-tagline {
  font-size: var(--font-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-weight: 400;
  font-style: italic;
}

.featured-story {
  margin: var(--space-xl) 0;
}

.featured-story-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-2xl);
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.featured-story-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-medium);
  display: grid;
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.featured-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-dark);
}

.featured-story-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--gradient-primary);
}

.featured-story-content {
  padding: var(--space-lg);
}

.featured-story-title {
  font-family: 'Merriweather', serif;
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.featured-story-description {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.featured-story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .featured-story-card {
    grid-template-columns: 1.2fr 1fr;
    max-width: 700px;
  }
  
  .featured-story-image {
    height: 100%;
  }
}

/* Search Section */
.search-section {
  padding: var(--space-xl) 0;
  background: white;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-label {
  display: block;
  text-align: center;
  font-size: var(--font-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.search-box {
  display: flex;
  background: var(--off-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--soft-saffron);
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

.search-box input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  outline: none;
  font-size: var(--font-base);
  color: var(--text-primary);
  background: transparent;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-box button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.search-box button:active {
  transform: scale(0.98);
}

/* Categories Section */
.categories {
  padding: var(--space-xl) 0;
  background: white;
}

.categories-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.categories-header h2 {
  font-family: 'Merriweather', serif;
  font-size: var(--font-4xl);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.categories-header p {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.category-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--soft-saffron);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
}

.category-card h3 {
  font-family: 'Merriweather', serif;
  font-size: var(--font-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.category-card p {
  color: var(--text-muted);
  font-size: var(--font-sm);
  margin-bottom: 0;
}

.category-count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--gradient-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-2xl);
  font-size: var(--font-xs);
  font-weight: 500;
}

/* Stories Section */
.latest-stories {
  padding: var(--space-xl) 0;
  background: var(--off-white);
}

.stories-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.stories-header h2 {
  font-family: 'Merriweather', serif;
  font-size: var(--font-4xl);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.stories-header p {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.story-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow-medium);
}

.story-card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.story-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card.featured {
  grid-column: 1 / -1;
  max-width: 700px;
  margin: 0 auto;
}

.story-card.featured .story-card-image {
  height: 300px;
}

.story-card:hover .story-card-image {
  transform: scale(1.05);
}

.story-card-category {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-2xl);
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.story-card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-card-title {
  font-family: 'Merriweather', serif;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.story-card.featured .story-card-title {
  font-size: var(--font-2xl);
}

.story-card-description {
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
}

.story-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-sm);
  color: var(--text-muted);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.story-card-date {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.story-card-read-time {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.load-more {
  text-align: center;
}

.load-more button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-2xl);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-sm);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.load-more button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.3);
}

.load-more button:active {
  transform: translateY(0);
}

/* Story Article Page */
.story-article {
    padding: 2rem 0 4rem 0;
}

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

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.story-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.story-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.story-meta span {
    background: #f0f0f0;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-cover {
    margin-bottom: 2rem;
}

.story-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

#storyContent {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

#storyContent h2 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

#storyContent p {
    margin-bottom: 1.5rem;
}

.story-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-stories h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Story Article Page */
.story-article {
    padding: 2rem 0 4rem 0;
}

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

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.story-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.story-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.story-meta span {
    background: #f0f0f0;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-cover {
    margin-bottom: 2rem;
}

.story-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

#storyContent {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

#storyContent h2 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

#storyContent p {
    margin-bottom: 1.5rem;
}

.story-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-stories h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Footer */
.footer {
  background: var(--deep-brown);
  color: white;
  padding: var(--space-xl) 0 var(--space-lg) 0;
  margin-top: var(--space-xxl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3,
.footer-section h4 {
  font-family: 'Merriweather', serif;
  margin-bottom: var(--space-md);
  color: var(--soft-saffron);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: var(--font-sm);
}

.footer-section a:hover {
  color: var(--soft-saffron);
  transform: translateX(2px);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-sm);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  font-size: var(--font-lg);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--soft-saffron);
  transform: translateY(-2px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.newsletter-form input {
  padding: var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: var(--font-sm);
  transition: all 0.2s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--soft-saffron);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
  padding: var(--space-sm);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-sm);
}

/* Story Article Page - Premium Magazine Style */
.story-article {
  padding: var(--space-xl) 0 var(--space-xxl) 0;
  background: white;
}

.story-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--soft-saffron);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--deep-brown);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-muted);
}

.story-header h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(var(--font-3xl), 4vw, var(--font-5xl));
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.story-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.story-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--gradient-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-2xl);
  font-size: var(--font-sm);
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Lora', 'Georgia', serif;
}

.story-cover {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-medium);
}

.story-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-cover:hover img {
  transform: scale(1.02);
}

#storyContent {
  font-size: var(--font-lg);
  line-height: 1.8;
  color: var(--text-primary);
  font-family: 'Lora', 'Georgia', serif;
}

#storyContent h2 {
  font-family: 'Merriweather', serif;
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-md) 0;
  line-height: 1.3;
}

#storyContent p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

#storyContent p:first-of-type::first-letter {
  font-family: 'Merriweather', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--soft-saffron);
  float: left;
  line-height: 1;
  margin-right: var(--space-sm);
  margin-top: 0.5rem;
}

.story-footer {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.related-stories h3 {
  font-family: 'Merriweather', serif;
  text-align: center;
  font-size: var(--font-3xl);
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: var(--z-fixed);
  transition: width 0.1s ease;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: var(--font-lg);
}

.share-button:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 10px;
    }

    .search-box input,
    .search-box button {
        border-radius: 0;
    }

    .search-box button {
        border-radius: 0 0 10px 10px;
    }

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

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .story-header h1 {
        font-size: 2rem;
    }

    .story-meta {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .categories,
    .latest-stories {
        padding: 2rem 0;
    }

    .categories h2,
    .latest-stories h2 {
        font-size: 1.8rem;
    }

    .story-card {
        margin: 0 -15px;
        border-radius: 0;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
