/* Vermilion Patriot Daily - Main Stylesheet */
/* Professional news typography with dark humor */

/* Google Fonts - Modern typography */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Light mode (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6c757d;
  --accent-primary: #8b0000; /* Dark red - patriotic */
  --accent-secondary: #002868; /* Navy blue */
  --accent-gold: #c5a030; /* Gold accent */
  --accent-gold-light: #d4b84a;
  --border-color: #dee2e6;
  --link-color: #8b0000;
  --link-hover: #5c0000;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --accent-primary: #ff4444;
  --accent-secondary: #4a90d9;
  --accent-gold: #d4b84a;
  --accent-gold-light: #e0c85a;
  --border-color: #404040;
  --link-color: #ff6666;
  --link-hover: #ff8888;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 1.25em;
}

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

a:hover, a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

blockquote {
  position: relative;
  border-left: none;
  margin: 2rem 0;
  padding: 1.5rem 2rem 1.5rem 3rem;
  font-style: italic;
  color: var(--text-secondary);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 3.5rem;
  font-family: Georgia, serif;
  color: var(--accent-primary);
  opacity: 0.25;
  line-height: 1;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header / Masthead */
.site-header {
  background: var(--bg-primary);
  border-bottom: 3px solid var(--accent-primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.site-logo {
  font-family: 'Inter', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.site-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  border-radius: 2px;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

.site-logo span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.1em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
}

.login-link {
  font-family: 'Franklin Gothic Medium', sans-serif;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.login-link:hover {
  background: var(--bg-secondary);
  text-decoration: none;
}

/* Main Navigation */
.main-nav {
  background: var(--bg-secondary);
  padding: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: 'Inter', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  border-bottom: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  background: var(--bg-tertiary);
  text-decoration: none;
  border-bottom-color: var(--accent-primary);
}

/* Mobile Navigation - Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.nav-open {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list a {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
  }

  .masthead {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .site-logo {
    font-size: 1.25rem;
  }

  .site-logo span {
    font-size: 0.625rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .login-link {
    display: none;
  }

  /* Don't make header sticky on mobile - takes too much space */
  .site-header {
    position: relative;
  }
}

@media (max-width: 480px) {
  .site-logo {
    font-size: 1rem;
  }

  .theme-toggle {
    padding: 0.375rem;
    font-size: 1rem;
  }
}

/* Main Content Area */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 300px);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Story Cards */
.story-card {
  background: var(--bg-primary);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.12),
    0 8px 24px rgba(0,0,0,0.08);
}

.story-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-card-content {
  padding: 1.25rem;
}

.story-card-section {
  font-family: 'Inter', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(139, 0, 0, 0.08);
  border-radius: 3px;
}

.story-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.story-card-title a {
  color: var(--text-primary);
}

.story-card-title a:hover {
  color: var(--accent-primary);
}

.story-card-dek {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.story-card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Lead Story */
.lead-story {
  margin-bottom: 2rem;
}

.lead-story .story-card-image {
  height: 400px;
}

.lead-story .story-card-title {
  font-size: 2rem;
}

/* Section Grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Featured Lead Story (Homepage) */
.featured-lead {
  margin-bottom: 2.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.06);
}

.featured-lead-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: 400px;
}

.featured-lead-image {
  position: relative;
  overflow: hidden;
}

.featured-lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-lead-image:hover img {
  transform: scale(1.02);
}

.featured-lead-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-lead-section {
  font-family: 'Inter', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(139, 0, 0, 0.08);
  border-radius: 3px;
}

.featured-lead-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-lead-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.featured-lead-title a:hover {
  color: var(--accent-primary);
}

.featured-lead-dek {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.featured-lead-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .featured-lead-inner {
    grid-template-columns: 1fr;
  }

  .featured-lead-image {
    height: 300px;
  }

  .featured-lead-title {
    font-size: 1.75rem;
  }
}

/* Story Grid (Homepage) */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.story-grid .story-card {
  display: flex;
  flex-direction: column;
}

.story-grid .story-card-image-link {
  display: block;
  overflow: hidden;
}

.story-grid .story-card-image {
  height: 180px;
  transition: transform 0.3s ease;
}

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

/* First two cards in grid get larger treatment */
.story-grid .story-card-featured {
  grid-column: span 1;
}

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

.story-grid .story-card-featured .story-card-title {
  font-size: 1.375rem;
}

@media (max-width: 1100px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-grid .story-card-image {
    height: 200px;
  }
}

/* Section Header */
.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Section Heading */
.section-heading {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-gold) 100%) border-box;
  display: inline-block;
  padding-right: 2rem;
}

/* Archive Link Box */
.archive-link-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  margin-top: 1rem;
}

.archive-link {
  font-family: 'Franklin Gothic Medium', sans-serif;
  font-size: 1rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.archive-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Section Navigation (Sidebar) */
.section-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-nav li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-nav li:last-child {
  border-bottom: none;
}

.section-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.section-nav a:hover {
  color: var(--accent-primary);
}

/* Story List */
.story-list {
  margin: 0;
  padding: 0;
}

.story-list-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.story-list-item:last-child {
  border-bottom: none;
}

.story-list-thumb {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
}

.story-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.story-list-thumb:hover img {
  transform: scale(1.05);
}

.story-list-content {
  flex: 1;
  min-width: 0;
}

.story-list-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.story-list-title a {
  color: var(--text-primary);
}

.story-list-title a:hover {
  color: var(--accent-primary);
}

.story-list-dek {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.story-list-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.story-list-meta .read-more {
  color: var(--accent-primary);
  font-weight: 600;
}

.story-list-meta .read-more:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .story-list-item {
    flex-direction: column;
  }

  .story-list-thumb {
    width: 100%;
    height: 180px;
  }
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: var(--bg-secondary);
  border: none;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

.sidebar-widget:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-widget-title {
  font-family: 'Inter', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #5c0000 100%);
  border-bottom: none;
  padding: 0.875rem 1.25rem;
  margin-bottom: 0;
}

.sidebar-widget > *:not(.sidebar-widget-title) {
  padding: 1.25rem;
}

/* Weather Widget */
.weather-widget {
  text-align: center;
}

.weather-temp {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Franklin Gothic Medium', sans-serif;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.weather-conditions {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.weather-details {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.weather-commentary {
  font-style: italic;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Pull Quote Widget */
.pull-quote {
  font-size: 1.125rem;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

.pull-quote-text {
  margin-bottom: 0.75rem;
}

.pull-quote-attribution {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Mood Ring */
.mood-ring {
  text-align: center;
}

.mood-ring-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.mood-ring-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Ads */
.ad-unit {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  padding: 1rem;
  text-align: center;
}

.ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.ad-headline {
  font-family: 'Franklin Gothic Medium', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.ad-body {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.ad-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #5c0000 100%);
  color: white;
  font-family: 'Inter', 'Franklin Gothic Medium', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.ad-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,0,0,0.3);
  color: white;
  text-decoration: none;
}

.ad-cta:hover::before {
  left: 100%;
}

/* Story Page */
.story-header {
  margin-bottom: 2rem;
}

.story-section-label {
  font-family: 'Franklin Gothic Medium', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.story-title {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.story-dek {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.story-byline {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.story-byline strong {
  color: var(--text-primary);
}

.story-views {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.story-views .view-icon {
  font-size: 1rem;
}

.story-views .view-number {
  font-weight: 600;
  color: var(--accent-primary);
}

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

.story-hero img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.story-hero figcaption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.story-body {
  font-size: 1.125rem;
  line-height: 1.8;
}

.story-body h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.story-body h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Inline Images */
.inline-image {
  margin: 1.5rem 0;
}

.inline-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.inline-image-float-right {
  float: right;
  max-width: 350px;
  margin: 0 0 1rem 1.5rem;
}

.inline-image-float-left {
  float: left;
  max-width: 350px;
  margin: 0 1.5rem 1rem 0;
}

.inline-image-square {
  max-width: 300px;
}

.inline-image-square img {
  aspect-ratio: 1;
  object-fit: cover;
}

.inline-image-full-width {
  margin: 2rem 0;
}

.inline-image-full-width img {
  width: 100%;
}

.inline-image-after {
  margin: 1.5rem 0;
  text-align: center;
}

.inline-image-after img {
  max-width: 600px;
}

/* Consistent Caption Styling */
.image-caption,
.inline-image figcaption,
figure figcaption {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}

.inline-image-float-right .image-caption,
.inline-image-float-left .image-caption {
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .inline-image-float-right,
  .inline-image-float-left {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .inline-image-square {
    max-width: 100%;
  }
}

/* Social Feed Energy Module */
.social-feed-energy {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-secondary);
  padding: 1.25rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.social-feed-energy h3 {
  font-family: 'Franklin Gothic Medium', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.social-feed-energy ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.social-feed-energy li {
  margin-bottom: 0.5rem;
}

/* Inspired By Headlines */
.inspired-by {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 4px;
  margin: 2rem 0;
  font-size: 0.875rem;
}

.inspired-by h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.inspired-by ul {
  margin: 0;
  padding-left: 1.25rem;
}

.inspired-by a {
  color: var(--text-secondary);
}

/* Story Tags */
.story-tags {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.story-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.story-tag:hover {
  background: var(--bg-tertiary);
  text-decoration: none;
}

/* Story Navigation */
.story-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.story-nav-link {
  flex: 1;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.story-nav-link:hover {
  background: var(--bg-tertiary);
  text-decoration: none;
}

.story-nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.story-nav-title {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.story-nav-next {
  text-align: right;
}

/* Archive Pages */
.archive-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-primary);
}

.archive-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.archive-description {
  color: var(--text-secondary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
}

.pagination a:hover {
  background: var(--bg-secondary);
  text-decoration: none;
}

.pagination .current {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Login Page */
.login-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.login-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-form .form-group {
  margin-bottom: 1rem;
}

.login-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.login-form input:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.login-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.login-form button {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #5c0000 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,0,0,0.3);
}

.login-form button:hover::before {
  left: 100%;
}

.login-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

.login-message {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  text-align: center;
  display: none;
}

.login-message.visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 3px solid var(--accent-primary);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: 'Franklin Gothic Medium', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.satire-notice {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
}

.search-overlay.active {
  display: flex;
}

.search-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.25rem;
  border: 2px solid var(--accent-primary);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.search-results {
  margin-top: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* Derp Page Styles */
.derp-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.derp-content h2 {
  margin-top: 2rem;
}

/* Health Page */
.health-status {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
}

.health-status-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.health-status-item:last-child {
  border-bottom: none;
}

.status-ok {
  color: #28a745;
  font-weight: 600;
}

.status-warning {
  color: #ffc107;
  font-weight: 600;
}

.status-error {
  color: #dc3545;
  font-weight: 600;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Dark Mode Transitions */
.story-card,
.sidebar-widget,
.featured-lead,
.site-header,
.site-footer,
.login-container,
a {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Print Styles */
@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .story-nav,
  .ad-unit {
    display: none;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }

  .story-body {
    max-width: 100%;
  }
}
