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

:root {
  /* Ravens Colors */
  --ravens-purple: #241773;
  --ravens-purple-light: #4B2E83;
  --ravens-purple-dark: #1a1052;
  --ravens-black: #000000;
  --ravens-gold: #9E7C0C;
  --ravens-gold-light: #C9A227;
  
  /* Theme Colors */
  --color-primary: var(--ravens-gold);
  --color-primary-light: var(--ravens-gold-light);
  --color-accent: var(--ravens-purple);
  --color-bg: #0a0a0f;
  --color-bg-gradient: linear-gradient(180deg, #0a0a0f 0%, #1a1025 50%, #0f0a15 100%);
  --color-card: #141420;
  --color-card-hover: #1c1c2e;
  --color-text: #f0f0f5;
  --color-text-muted: #9090a8;
  --color-border: #2a2a40;
  --color-badge-bg: #241773;
  --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(36, 23, 115, 0.3);
  --shadow-glow: 0 0 20px rgba(158, 124, 12, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

/* Base Styles */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  background-image: var(--color-bg-gradient);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Stats Banner */
.stats-banner {
  background: linear-gradient(135deg, var(--ravens-purple-dark) 0%, var(--ravens-purple) 50%, var(--ravens-purple-light) 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-align: center;
  border: 1px solid rgba(158, 124, 12, 0.3);
  box-shadow: var(--shadow-glow);
}

.stats-banner strong {
  color: var(--ravens-gold-light);
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(158, 124, 12, 0.5);
}

/* Weather Widget */
.weather-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(36, 23, 115, 0.4), rgba(36, 23, 115, 0.2));
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.weather-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.weather-icon {
  font-size: 1.5rem;
}

.weather-temp {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ravens-gold-light);
}

.weather-condition {
  color: var(--color-text);
}

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

.weather-loading,
.weather-error {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
}

.logo h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--ravens-gold) 0%, var(--ravens-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.tagline {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 1rem;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--color-badge-bg);
  color: var(--color-primary);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--ravens-purple) 0%, var(--ravens-purple-light) 100%);
  color: var(--ravens-gold-light);
  border: 1px solid var(--ravens-gold);
}

/* Date Display */
.date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.date-display span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Premium Indicator */
.premium-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--ravens-gold), var(--ravens-gold-light));
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(158, 124, 12, 0.5); }
  50% { box-shadow: 0 0 15px rgba(158, 124, 12, 0.8); }
}

/* Free Indicator */
.free-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

/* Upsell bar premium active state */
.premium-active {
  background: linear-gradient(135deg, rgba(158, 124, 12, 0.2), rgba(158, 124, 12, 0.1)) !important;
  border-color: var(--ravens-gold) !important;
}

.refresh-btn {
  background: var(--color-badge-bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* Stories Container */
.stories-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Story Card */
.story-card {
  background: linear-gradient(145deg, var(--color-card) 0%, rgba(36, 23, 115, 0.15) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  transition: all 0.2s ease;
}

.story-card.has-thumbnail {
  grid-template-columns: auto auto 1fr;
}

.story-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.story-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .story-card.has-thumbnail {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  
  .story-thumbnail {
    grid-column: 2;
    grid-row: 1;
    width: 80px;
    height: 80px;
    justify-self: end;
  }
  
  .story-card.has-thumbnail .story-content {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.story-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--ravens-purple);
  transform: translateY(-2px);
}

.rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ravens-purple) 0%, var(--ravens-purple-light) 100%);
  color: var(--ravens-gold-light);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid rgba(158, 124, 12, 0.3);
}

.story-content {
  min-width: 0;
}

.story-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.story-card .summary {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.source-name {
  font-weight: 600;
  color: var(--color-primary-light);
}

.meta-separator {
  color: var(--color-border);
}

.badge {
  display: inline-block;
  background: var(--color-badge-bg);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.badge.crime { background: rgba(220, 38, 38, 0.2); color: #f87171; }
.badge.politics { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge.government { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge.schools { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.badge.sports { background: rgba(36, 23, 115, 0.4); color: var(--ravens-gold-light); }
.badge.weather { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.badge.business { background: rgba(158, 124, 12, 0.2); color: var(--ravens-gold-light); }
.badge.community { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.badge.transportation { background: rgba(158, 124, 12, 0.2); color: var(--ravens-gold-light); }

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ravens-gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--ravens-purple) 0%, var(--ravens-purple-light) 100%);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.story-link:hover {
  background: linear-gradient(135deg, var(--ravens-purple-light) 0%, var(--ravens-purple) 100%);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}

/* Multi-source display */
.multi-sources {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(36, 23, 115, 0.15);
  border-radius: var(--radius-md);
  border: 1px solid rgba(158, 124, 12, 0.2);
}

.sources-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ravens-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.source-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ravens-gold-light);
  background: linear-gradient(135deg, var(--ravens-purple) 0%, var(--ravens-purple-light) 100%);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(158, 124, 12, 0.3);
}

.source-link:hover {
  background: linear-gradient(135deg, var(--ravens-purple-light) 0%, var(--ravens-purple) 100%);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.6875rem;
  color: var(--ravens-gold);
  background: rgba(36, 23, 115, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(158, 124, 12, 0.2);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 2rem;
  background: rgba(220, 38, 38, 0.1);
  border-radius: var(--radius-md);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Archive Layout */
.archive-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.date-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.date-sidebar h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.date-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.date-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: all 0.15s ease;
}

.date-btn:hover {
  background: var(--color-badge-bg);
}

.date-btn.active {
  background: var(--color-primary);
  color: white;
}

/* About Section */
.about-section {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--ravens-purple-dark) 0%, var(--ravens-purple) 50%, var(--ravens-purple-light) 100%);
  border-radius: var(--radius-lg);
  color: white;
  border: 1px solid rgba(158, 124, 12, 0.3);
  box-shadow: var(--shadow-lg);
}

.about-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ravens-gold-light);
}

.about-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section strong {
  color: var(--ravens-gold-light);
}

.about-section em {
  font-style: italic;
}

/* Sources Section */
.sources-section {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, var(--color-card) 0%, rgba(36, 23, 115, 0.15) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.sources-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ravens-gold-light);
}

.sources-section > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.source-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.8) 0%, rgba(36, 23, 115, 0.2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.source-card:hover {
  border-color: var(--ravens-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, rgba(36, 23, 115, 0.3) 0%, rgba(36, 23, 115, 0.4) 100%);
}

.source-card strong {
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

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

/* Rules Section */
.rules-section {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, var(--color-card) 0%, rgba(36, 23, 115, 0.15) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.rules-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--ravens-gold-light);
  text-align: center;
}

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

.rule-card {
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.8) 0%, rgba(36, 23, 115, 0.2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.2s ease;
}

.rule-card:hover {
  border-color: var(--ravens-purple);
  transform: translateY(-2px);
}

.rule-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.rule-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.rule-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Auth Controls */
.auth-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: var(--color-primary);
  color: #000;
}

.auth-btn.secondary {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.auth-btn.secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  background: transparent;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.premium-badge {
  background: linear-gradient(135deg, var(--ravens-gold), var(--ravens-gold-light));
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.subscribe-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--ravens-gold), var(--ravens-gold-light));
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.manage-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--ravens-gold);
  color: var(--ravens-gold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.manage-btn:hover {
  background: var(--ravens-gold);
  color: #000;
}

/* Premium Upsell Banner */
.premium-upsell {
  background: linear-gradient(135deg, rgba(36, 23, 115, 0.3), rgba(75, 46, 131, 0.2));
  border: 1px solid rgba(158, 124, 12, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

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

.premium-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.premium-link:hover {
  text-decoration: underline;
}

/* Auth Modal */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.auth-modal.active {
  display: flex;
}

.auth-modal-content {
  background: linear-gradient(145deg, var(--color-card) 0%, rgba(36, 23, 115, 0.2) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  border: 1px solid var(--color-border);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--color-text);
}

.auth-modal h2 {
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Auth Method Tabs */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  background: var(--color-card-hover);
  border-color: var(--ravens-purple);
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--ravens-purple) 0%, var(--ravens-purple-light) 100%);
  border-color: var(--ravens-gold);
  color: white;
}

#auth-otp {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.auth-error {
  color: #fc8181;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-submit-btn:hover {
  background: #f6c85c;
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-toggle {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.auth-toggle a {
  color: var(--color-primary);
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

.forgot-link {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.forgot-link a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.forgot-link a:hover {
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-footer p {
  margin-bottom: 0.25rem;
}

.legal {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.powered-by {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }
  
  .date-sidebar {
    position: static;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .date-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .story-card {
    grid-template-columns: 1fr;
  }
  
  .rank {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
}

/* ========================================
   Jobs Page Styles
   ======================================== */

.jobs-header {
  text-align: center;
  margin-bottom: 2rem;
}

.jobs-header h1 {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.jobs-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Sector Tabs */
.sector-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.sector-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
  font-family: inherit;
  color: var(--color-text);
}

.sector-tab:hover {
  background: var(--color-card-hover);
  border-color: var(--ravens-purple);
}

.sector-tab.active {
  background: linear-gradient(135deg, var(--ravens-purple) 0%, var(--ravens-purple-light) 100%);
  border-color: var(--ravens-gold);
  box-shadow: var(--shadow-glow);
}

.sector-icon {
  font-size: 2rem;
}

.sector-name {
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.sector-count {
  font-size: 0.75rem;
  color: var(--ravens-gold);
  background: rgba(158, 124, 12, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.sector-tab.active .sector-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Jobs Container */
.jobs-container {
  min-height: 400px;
}

.jobs-header-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.jobs-header-info h2 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.jobs-header-info p {
  color: var(--color-text-muted);
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Job Card */
.job-card {
  background: linear-gradient(145deg, var(--color-card) 0%, rgba(36, 23, 115, 0.1) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.job-card:hover {
  border-color: var(--ravens-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.job-title {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.job-company {
  font-size: 1rem;
  color: var(--ravens-gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.job-location, .job-salary, .job-type {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.job-salary {
  color: var(--ravens-gold-light);
  font-weight: 500;
}

.job-description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

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

.job-apply-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--ravens-gold) 0%, var(--ravens-gold-light) 100%);
  color: var(--ravens-black);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.job-apply-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Jobs Upsell */
.jobs-upsell {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--ravens-purple-dark) 0%, var(--ravens-purple) 100%);
  border: 1px solid var(--ravens-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.upsell-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upsell-icon {
  font-size: 2.5rem;
}

.upsell-text {
  flex: 1;
}

.upsell-text strong {
  display: block;
  font-size: 1.125rem;
  color: var(--ravens-gold-light);
  margin-bottom: 0.25rem;
}

.upsell-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.upsell-btn {
  padding: 0.75rem 1.5rem;
  background: var(--ravens-gold);
  color: var(--ravens-black);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.upsell-btn:hover {
  background: var(--ravens-gold-light);
}

/* No Jobs State */
.no-jobs {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.no-jobs-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.no-jobs h3 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* Error State */
.error-message {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.error-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.retry-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--ravens-purple);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.retry-btn:hover {
  background: var(--ravens-purple-light);
}

/* Footer Jobs Attribution */
.footer-jobs {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Jobs Page Responsive */
@media (max-width: 768px) {
  .sector-tabs {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .sector-tab {
    flex-direction: row;
    min-width: auto;
    padding: 0.75rem 1rem;
  }
  
  .sector-icon {
    font-size: 1.5rem;
  }
  
  .upsell-content {
    flex-direction: column;
    text-align: center;
  }
  
  .job-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .job-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ========================================
   Events Page Styles
   ======================================== */

.events-header {
  text-align: center;
  margin-bottom: 2rem;
}

.events-header h1 {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.events-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Category Tabs - reuse sector tab styles */
.category-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  font-family: inherit;
  color: var(--color-text);
}

.category-tab:hover {
  background: var(--color-card-hover);
  border-color: var(--ravens-purple);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--ravens-purple) 0%, var(--ravens-purple-light) 100%);
  border-color: var(--ravens-gold);
  box-shadow: var(--shadow-glow);
}

.category-icon {
  font-size: 2rem;
}

.category-name {
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.category-count {
  font-size: 0.75rem;
  color: var(--ravens-gold);
  background: rgba(158, 124, 12, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.category-tab.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Events Container */
.events-container {
  min-height: 400px;
}

.events-header-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.events-header-info h2 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.events-header-info p {
  color: var(--color-text-muted);
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Event Card */
.event-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.event-card:hover {
  border-color: var(--ravens-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.event-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-price {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--ravens-gold);
  color: var(--ravens-black);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
}

.event-content {
  padding: 1.25rem;
}

.event-name {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.event-datetime {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-date, .event-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-venue {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event-location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.event-description {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--ravens-gold) 0%, var(--ravens-gold-light) 100%);
  color: var(--ravens-black);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.event-ticket-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Events Upsell */
.events-upsell {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--ravens-purple-dark) 0%, var(--ravens-purple) 100%);
  border: 1px solid var(--ravens-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* No Events State */
.no-events {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.no-events-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.no-events h3 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* Footer Events Attribution */
.footer-events {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Events Page Responsive */
@media (max-width: 768px) {
  .category-tabs {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .category-tab {
    flex-direction: row;
    min-width: auto;
    padding: 0.75rem 1rem;
  }
  
  .category-icon {
    font-size: 1.5rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .event-datetime {
    flex-direction: column;
    gap: 0.25rem;
  }
}
