:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #fff;
  --bg-tertiary: #e8ecf1;
  --bg-hover: #dfe3e8;
  --bg-error: #fef2f2;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-link: #475569;
  --text-error: #dc2626;
  --border-primary: #cbd5e1;
  --border-accent: #64748b;
  --border-success: #0891b2;
  --border-error: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 8%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 15%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 20%);
  --badge-bg: #e0e7ff;
  --badge-text: #3730a3;
  --gradient-start: #64748b;
  --gradient-end: #6366f1;
  --accent-primary: #0891b2;
  --accent-success: #0891b2;
  --accent-error: #e11d48;
  --card-bg: rgb(255 255 255 / 70%);
  --card-border: rgb(203 213 225 / 50%);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-hover: #475569;
  --bg-error: #450a0a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-link: #94a3b8;
  --text-error: #f87171;
  --border-primary: #334155;
  --border-accent: #64748b;
  --border-success: #06b6d4;
  --border-error: #f87171;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 30%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 40%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 50%);
  --badge-bg: #312e81;
  --badge-text: #c7d2fe;
  --gradient-start: #475569;
  --gradient-end: #6366f1;
  --accent-primary: #06b6d4;
  --accent-success: #06b6d4;
  --accent-error: #fb7185;
  --card-bg: rgb(30 41 59 / 70%);
  --card-border: rgb(51 65 85 / 50%);
}

/* Experimental Themes */

/* Purple Haze - Vibrant purple theme */
[data-theme="purple-haze"] {
  --bg-primary: #1a0b2e;
  --bg-secondary: #2d1b4e;
  --bg-tertiary: #432c6f;
  --bg-hover: #59408f;
  --bg-error: #3d0a1a;
  --text-primary: #f3e8ff;
  --text-secondary: #d8b4fe;
  --text-link: #d8b4fe;
  --text-error: #f87171;
  --border-primary: #432c6f;
  --border-accent: #a78bfa;
  --border-success: #c084fc;
  --border-error: #f87171;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 35%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 45%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 55%);
  --badge-bg: #581c87;
  --badge-text: #e9d5ff;
  --gradient-start: #7c3aed;
  --gradient-end: #c084fc;
  --accent-primary: #a78bfa;
  --accent-success: #c084fc;
  --accent-error: #f87171;
  --card-bg: rgb(45 27 78 / 70%);
  --card-border: rgb(67 44 111 / 50%);
}

/* Ocean Deep - Teal/cyan theme */
[data-theme="ocean-deep"] {
  --bg-primary: #0a1a1f;
  --bg-secondary: #0f2832;
  --bg-tertiary: #1a4050;
  --bg-hover: #255768;
  --bg-error: #2d0a0a;
  --text-primary: #e0f7fa;
  --text-secondary: #80deea;
  --text-link: #80deea;
  --text-error: #ff6b6b;
  --border-primary: #1a4050;
  --border-accent: #26c6da;
  --border-success: #4dd0e1;
  --border-error: #ff6b6b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 40%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 50%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 60%);
  --badge-bg: #006064;
  --badge-text: #b2ebf2;
  --gradient-start: #0097a7;
  --gradient-end: #26c6da;
  --accent-primary: #26c6da;
  --accent-success: #4dd0e1;
  --accent-error: #ff6b6b;
  --card-bg: rgb(15 40 50 / 70%);
  --card-border: rgb(26 64 80 / 50%);
}

/* Arctic Blue - Cool light blue theme */
[data-theme="arctic-blue"] {
  --bg-primary: #e0f2fe;
  --bg-secondary: #f0f9ff;
  --bg-tertiary: #bae6fd;
  --bg-hover: #a5dff8;
  --bg-error: #fee2e2;
  --text-primary: #0c4a6e;
  --text-secondary: #075985;
  --text-link: #075985;
  --text-error: #dc2626;
  --border-primary: #7dd3fc;
  --border-accent: #0284c7;
  --border-success: #0ea5e9;
  --border-error: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 8%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 15%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 20%);
  --badge-bg: #bae6fd;
  --badge-text: #075985;
  --gradient-start: #0284c7;
  --gradient-end: #0ea5e9;
  --accent-primary: #0284c7;
  --accent-success: #0ea5e9;
  --accent-error: #dc2626;
  --card-bg: rgb(240 249 255 / 70%);
  --card-border: rgb(186 230 253 / 50%);
}

/* High Contrast Dark - Maximum contrast for accessibility */
[data-theme="high-contrast-dark"] {
  --bg-primary: #000;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2d2d2d;
  --bg-hover: #404040;
  --bg-error: #2d0000;
  --text-primary: #fff;
  --text-secondary: #e0e0e0;
  --text-link: #e0e0e0;
  --text-error: #ff4d4d;
  --border-primary: #4d4d4d;
  --border-accent: #fff;
  --border-success: #0f0;
  --border-error: #ff4d4d;
  --shadow-sm: 0 1px 2px 0 rgb(255 255 255 / 10%);
  --shadow-md: 0 4px 6px -1px rgb(255 255 255 / 15%);
  --shadow-lg: 0 10px 15px -3px rgb(255 255 255 / 20%);
  --badge-bg: #4d4d4d;
  --badge-text: #fff;
  --gradient-start: #666;
  --gradient-end: #fff;
  --accent-primary: #fff;
  --accent-success: #0f0;
  --accent-error: #ff4d4d;
  --card-bg: rgb(26 26 26 / 90%);
  --card-border: rgb(77 77 77 / 70%);
}

/* High Contrast Light - Maximum contrast for accessibility */
[data-theme="high-contrast-light"] {
  --bg-primary: #fff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e0e0e0;
  --bg-hover: #d0d0d0;
  --bg-error: #ffe0e0;
  --text-primary: #000;
  --text-secondary: #1a1a1a;
  --text-link: #1a1a1a;
  --text-error: #c00;
  --border-primary: #000;
  --border-accent: #000;
  --border-success: #008000;
  --border-error: #c00;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 15%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 25%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 35%);
  --badge-bg: #e0e0e0;
  --badge-text: #000;
  --gradient-start: #000;
  --gradient-end: #333;
  --accent-primary: #000;
  --accent-success: #008000;
  --accent-error: #c00;
  --card-bg: rgb(245 245 245 / 90%);
  --card-border: rgb(0 0 0 / 50%);
}

/* Monochrome - Pure black and white */
[data-theme="monochrome"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #404040;
  --bg-hover: #525252;
  --bg-error: #2d0a0a;
  --text-primary: #f5f5f5;
  --text-secondary: #d0d0d0;
  --text-link: #d0d0d0;
  --text-error: #e0e0e0;
  --border-primary: #525252;
  --border-accent: #a0a0a0;
  --border-success: #c0c0c0;
  --border-error: #e0e0e0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 30%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 40%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 50%);
  --badge-bg: #525252;
  --badge-text: #f5f5f5;
  --gradient-start: #404040;
  --gradient-end: #a0a0a0;
  --accent-primary: #c0c0c0;
  --accent-success: #c0c0c0;
  --accent-error: #e0e0e0;
  --card-bg: rgb(45 45 45 / 70%);
  --card-border: rgb(82 82 82 / 50%);
}

/* Dracula - Popular dark theme */
[data-theme="dracula"] {
  --bg-primary: #282a36;
  --bg-secondary: #343746;
  --bg-tertiary: #44475a;
  --bg-hover: #565869;
  --bg-error: #3d0a0a;
  --text-primary: #f8f8f2;
  --text-secondary: #6272a4;
  --text-link: #8be9fd;
  --text-error: #f55;
  --border-primary: #44475a;
  --border-accent: #bd93f9;
  --border-success: #50fa7b;
  --border-error: #f55;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 35%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 45%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 55%);
  --badge-bg: #44475a;
  --badge-text: #f8f8f2;
  --gradient-start: #bd93f9;
  --gradient-end: #ff79c6;
  --accent-primary: #8be9fd;
  --accent-success: #50fa7b;
  --accent-error: #f55;
  --card-bg: rgb(52 55 70 / 70%);
  --card-border: rgb(68 71 90 / 50%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica",
    "Arial", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-tertiary) 100%
  );
  min-height: 100vh;
  padding: 0;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(
    --text-primary
  ); /* Fallback for browsers without background-clip: text support */
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.theme-toggle:active {
  transform: translateY(0);
}

.container {
  display: flex;
  min-height: calc(100vh - 80px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.sidebar {
  width: 280px;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-primary);
  transition:
    transform 0.3s ease,
    width 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.sidebar-content {
  flex: 1;
  overflow: hidden auto;
  padding: 1.5rem;
}

.sidebar-footer {
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  z-index: 100;
}

.view-selector {
  position: relative;
}

.view-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.view-select {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

[data-theme="dark"] .view-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.view-select:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
}

.view-select:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.sidebar-toggle {
  display: flex; /* Show on desktop and mobile */
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.sidebar-toggle:hover {
  transform: scale(1.1);
}

.sidebar.collapsed {
  transform: translateX(100%);
}

.sidebar-header {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2::before {
  content: "";
  width: 3px;
  height: 1.25rem;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  border-radius: 2px;
}

h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.metadata {
  display: none;
}

.summary-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.stat-card {
  padding: 1.75rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);

  border-radius: 1rem;
  border: 1px solid var(--card-border);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 5%),
    0 2px 4px -1px rgb(0 0 0 / 3%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  opacity: 60%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 10%),
    0 4px 6px -2px rgb(0 0 0 / 5%);
}

.stat-card.success::before {
  background: var(--accent-success);
}

.stat-card.error::before {
  background: var(--accent-error);
}

.stat-icon {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-tertiary);
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.stat-card.success .stat-icon {
  color: var(--accent-success);
  background: rgb(8 145 178 / 10%);
}

.stat-card.error .stat-icon {
  color: var(--accent-error);
  background: rgb(225 29 72 / 10%);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.feed-section {
  margin-bottom: 3rem;
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.feed-section:hover {
  box-shadow: var(--shadow-md);
}

.article-list {
  list-style: none;
  margin-top: 1rem;
}

.article-item {
  position: relative;
  padding: 1.25rem 3rem 1.25rem 1.25rem;
  margin-bottom: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.article-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.article-title {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.article-title:hover {
  color: var(--gradient-end);
}

.article-item.read {
  opacity: 60%;
}

.article-item.read .article-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feed-count {
  display: inline-block;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  padding: 0.375rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  margin-left: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.failed-feeds {
  background: var(--card-bg);
  backdrop-filter: blur(10px);

  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 5%),
    0 2px 4px -1px rgb(0 0 0 / 3%);
  transition: all 0.3s ease;
}

.failed-feed-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  border-left: 3px solid var(--accent-error);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.failed-feed-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.failed-feed-item:last-child {
  margin-bottom: 0;
}

.failed-feed-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-error);
  margin-bottom: 0.25rem;
}

.failed-feed-url {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 0.25rem;
}

.failed-feed-error {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-primary);
  margin-top: 0.25rem;
}

.no-articles {
  padding: 0.75rem 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
}

.feed-section .no-articles {
  margin-top: 0.5rem;
}

/* Feed breakdown section */
.feed-breakdown {
  background: var(--card-bg);
  backdrop-filter: blur(10px);

  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 5%),
    0 2px 4px -1px rgb(0 0 0 / 3%);
  margin-bottom: 2rem;
}

/* Backdrop filter fallbacks for browsers without support */
@supports not (backdrop-filter: blur(10px)) {
  .stat-card,
  .failed-feeds,
  .feed-breakdown,
  .experimental-themes {
    background-color: var(--bg-secondary);
    opacity: 95%;
  }
}

.feed-breakdown-item {
  margin-bottom: 1.5rem;
}

.feed-breakdown-item:last-child {
  margin-bottom: 0;
}

.feed-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feed-breakdown-name {
  font-weight: 600;
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.feed-breakdown-name:hover {
  color: var(--border-accent);
  text-decoration: underline;
}

.feed-breakdown-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.feed-breakdown-bar {
  width: 100%;
  height: 10px;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.feed-breakdown-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 5px;
  transition: width 0.5s ease;
  min-width: 2%;
}

/* List view - style no-articles message to match */
[data-view="list"] .no-articles {
  background-color: transparent;
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-style: normal;
  border-bottom: 1px dotted var(--border-primary);
}

.feed-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.875rem 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  display: block;
}

.nav-link:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.nav-link.active {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.timeframe-selector {
  position: relative;
  margin-bottom: 0;
}

.timeframe-select {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

[data-theme="dark"] .timeframe-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.timeframe-select:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
}

.timeframe-select:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (width <= 768px) {
  body {
    padding: 0;
  }

  .header {
    padding: 1rem;
    flex-wrap: wrap;
    position: relative;
    align-items: center;
    min-height: 60px;
  }

  .header-title {
    font-size: 1.25rem;
    flex: 1;
    min-width: 0;
    padding-right: 3.5rem;
    display: flex;
    align-items: center;
    align-self: center;
  }

  .header-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    order: 3;
    gap: 0.5rem;
  }

  .nav-toggle {
    order: 1;
    grid-column: 1;
    grid-row: 1;
  }

  .timeframe-selector {
    order: 2;
    grid-column: 2;
    grid-row: 1;
  }

  .reset-read-button {
    order: 3;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .reset-read-button,
  .nav-toggle {
    justify-content: flex-start;
  }

  .theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0 !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    max-width: 2.75rem !important;
    max-height: 2.75rem !important;
    aspect-ratio: 1/1 !important;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
  }

  #theme-text {
    display: none;
  }

  .theme-toggle svg {
    margin: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .settings-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .container {
    flex-direction: column;
  }

  .main-content {
    padding: 1.5rem;
  }

  .sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .sidebar.collapsed {
    transform: translateX(100%);
  }

  .sidebar-toggle {
    display: flex;
  }

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

  .stat-card {
    padding: 1.5rem;
  }

  .feed-section {
    padding: 1.5rem;
  }
}

.nav-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.nav-toggle:active {
  transform: translateY(0);
}

/* Mark as Read Styles */
.read-indicator {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  color: var(--text-secondary);
  opacity: 50%;
  z-index: 1;
}

.read-indicator:hover {
  opacity: 100%;
  background: var(--bg-hover);
  transform: scale(1.1);
}

.read-indicator.active {
  background: var(--border-success);
  border: 2px solid var(--border-success);
  color: white;
  opacity: 100%;
}

.reset-read-button {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reset-read-button:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.reset-read-button:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.reset-read-button:active {
  transform: translateY(0);
}

@media (width <= 768px) {
  .reset-read-button {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    justify-content: flex-start;
  }

  .read-indicator {
    width: 1.75rem;
    height: 1.75rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .read-indicator svg {
    width: 14px;
    height: 14px;
  }
}

@media (width <= 480px) {
  .reset-read-button,
  .nav-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }
}

/* Card view mode - original card-based design */
[data-view="card"] .feed-section {
  margin-bottom: 3rem;
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

[data-view="card"] .feed-section:hover {
  box-shadow: var(--shadow-md);
}

[data-view="card"] .article-list {
  margin-top: 1rem;
}

[data-view="card"] .article-item {
  padding: 1.25rem 3rem 1.25rem 1.25rem;
  margin-bottom: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: 0.75rem;
  border: 1px solid transparent;
}

[data-view="card"] .article-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* List view mode - simple list with dotted borders */
[data-view="list"] body {
  line-height: 1.35;
}

[data-view="list"] .feed-section {
  background-color: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.35rem 0.75rem;
}

[data-view="list"] .article-item {
  background-color: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px dotted var(--border-primary);
  padding: 0.35rem 2.5rem 0.35rem 0.75rem;
  margin-bottom: 0;
}

[data-view="list"] .article-item:hover {
  background-color: var(--bg-tertiary);
  transform: none;
  box-shadow: none;
}

[data-view="list"] .article-list {
  margin-top: 0.2rem;
  border-top: none;
}

[data-view="list"] h2 {
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
}

[data-view="list"] .article-title {
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 500;
  display: inline;
}

[data-view="list"] .article-meta {
  font-size: 0.6875rem;
  margin-left: 0.4rem;
  display: inline;
  color: var(--text-secondary);
}

[data-view="list"] .feed-count {
  font-size: 0.6875rem;
  padding: 0.2rem 0.45rem;
}

[data-view="list"] .read-indicator {
  width: 1.25rem;
  height: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  right: 0.5rem;

  /* Circle for consistency */
  border-radius: 50%;

  /* No border in default state */
  border: none;

  /* More subtle background */
  background: transparent;

  /* Lower opacity when not active */
  opacity: 40%;

  /* Smooth transitions */
  transition: all 0.15s ease;

  /* Ensure proper stacking */
  z-index: 1;
}

/* Hover state - more visible but still subtle */
[data-view="list"] .read-indicator:hover {
  opacity: 80%;
  background: var(--bg-tertiary);
  transform: translateY(-50%);
}

/* Active/Read state - clear visual indicator */
[data-view="list"] .read-indicator.active {
  background: var(--accent-success);
  border: none;
  color: white;
  opacity: 90%;
  transform: translateY(-50%);
  padding: 0.4125rem;
  background-clip: content-box;
}

/* Active hover state */
[data-view="list"] .read-indicator.active:hover {
  opacity: 100%;
  transform: translateY(-50%);
}

/* Icon sizing for list view */
[data-view="list"] .read-indicator svg {
  width: 10px;
  height: 10px;
}

/* List View - Responsive adjustments for read indicators */

/* Mobile adjustments for list view */
@media (width <= 768px) {
  [data-view="list"] .read-indicator {
    width: 1.75rem;
    height: 1.75rem;
    right: 0.4rem;
    border-radius: 50%;
  }

  [data-view="list"] .read-indicator svg {
    width: 14px;
    height: 14px;
  }
}

/* Extra small mobile - ensure touch targets are adequate (48x48px) */
@media (width <= 480px) {
  [data-view="list"] .read-indicator {
    width: 2rem;
    height: 2rem;
    right: 0.3rem;
    border-radius: 50%;
  }

  [data-view="list"] .read-indicator svg {
    width: 16px;
    height: 16px;
  }
}

/* Tablet optimization */
@media (width >= 769px) and (width <= 1024px) {
  [data-view="list"] .read-indicator {
    width: 1.5rem;
    height: 1.5rem;
  }

  [data-view="list"] .read-indicator svg {
    width: 12px;
    height: 12px;
  }
}

/* Settings Page Styles */
.settings-container {
  display: flex;
  min-height: calc(100vh - 80px);
  max-width: 1600px;
  margin: 0 auto;
}

.settings-sidebar {
  width: 280px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-primary);
  padding: 1.5rem;
  overflow-y: auto;
}

.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-size: 0.9375rem;
  font-weight: 500;
}

.settings-menu-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.settings-menu-item.active {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.settings-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.settings-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-primary);
}

.settings-group {
  margin-bottom: 2rem;
}

.settings-group-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-primary);
}

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

.settings-item-label {
  flex: 1;
  max-width: 600px;
}

.settings-item-label label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  cursor: pointer;
}

.settings-item-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.settings-item-control {
  flex-shrink: 0;
  margin-left: 2rem;
}

.settings-select {
  min-width: 200px;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

[data-theme="dark"] .settings-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.settings-select:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
}

.settings-select:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.settings-item-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.settings-action-button {
  padding: 0.625rem 1.25rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.settings-action-button:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.settings-action-button:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.settings-action-button:active {
  transform: translateY(0);
}

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

.feed-checkbox-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.feed-checkbox-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-accent);
}

.feed-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.feed-checkbox-item label {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.settings-back-button {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-back-button:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.settings-back-button:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

.settings-back-button:active {
  transform: translateY(0);
}

/* Mobile responsiveness for settings */
@media (width <= 768px) {
  .settings-container {
    flex-direction: column;
  }

  .settings-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem;
  }

  .settings-menu {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.75rem;
  }

  .settings-menu-item {
    flex-shrink: 0;
    min-width: 150px;
  }

  .settings-menu-item:hover {
    transform: translateX(0);
    transform: translateY(-2px);
  }

  .settings-content {
    padding: 1.5rem 1rem;
  }

  .settings-item {
    flex-direction: column;
    gap: 1rem;
  }

  .settings-item-control {
    margin-left: 0;
    width: 100%;
  }

  .settings-select {
    width: 100%;
  }

  .feed-checkboxes {
    grid-template-columns: 1fr;
  }
}

/* Settings Button Styles - Sidebar */
.settings-selector {
  margin-top: 1rem;
}

.settings-button {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.settings-button:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.settings-button:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
}

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

/* RSS Feeds Section */
.rss-feeds-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
}

.rss-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rss-link svg {
  flex-shrink: 0;
  color: var(--accent-primary);
}

.rss-link:hover svg {
  color: var(--accent-hover);
}

/* List view adjustments for RSS links */
[data-view="list"] .rss-link {
  font-size: 0.8125rem;
}

[data-view="list"] .rss-link svg {
  width: 14px;
  height: 14px;
}

/* Header button icon-only styles */
.header-controls .theme-toggle,
.header-controls .nav-toggle,
.header-controls .settings-button {
  padding: 0.625rem;
  width: auto;
  min-width: auto;
}

.header-controls .settings-button {
  justify-content: center;
}

/* Mobile UX Improvements */
@media (width <= 768px) {
  /* Position settings button next to theme toggle on mobile */
  .header-controls .settings-button {
    position: absolute;
    top: 1rem;
    right: 4.5rem;
    padding: 0 !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    max-width: 2.75rem !important;
    max-height: 2.75rem !important;
    aspect-ratio: 1/1 !important;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
  }

  /* Make settings back button more compact on mobile */
  .settings-back-button {
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    width: auto !important;
    display: inline-flex !important;
  }

  /* Improve settings menu tabs on mobile */
  .settings-menu-item {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .settings-menu-item svg {
    width: 14px;
    height: 14px;
  }

  /* Better spacing for mobile header */
  .header-title {
    padding-right: 8rem !important;
  }
}

/* ===================================
   EXPERIMENTAL LAYOUT REDESIGNS
   Complete UI/UX overhauls with different layouts, typography, and visual approaches
   =================================== */

/* Minimalist - Ultra-clean, minimal design */
[data-theme="minimalist"] body {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

[data-theme="minimalist"] {
  --bg-primary: #fff;
  --bg-secondary: #fff;
  --bg-tertiary: #fafafa;
  --bg-hover: #f5f5f5;
  --bg-error: #fff0f0;
  --text-primary: #000;
  --text-secondary: #666;
  --text-link: #000;
  --text-error: #d00;
  --border-primary: #e0e0e0;
  --border-accent: #000;
  --border-success: #000;
  --border-error: #d00;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --badge-bg: #000;
  --badge-text: #fff;
  --gradient-start: #000;
  --gradient-end: #333;
  --accent-primary: #000;
  --accent-success: #000;
  --accent-error: #d00;
  --card-bg: #fff;
  --card-border: #e0e0e0;
}

[data-theme="minimalist"] .header {
  border-bottom: 1px solid #000;
  box-shadow: none;
}

[data-theme="minimalist"] .feed-section {
  border: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="minimalist"] .article-item {
  border-radius: 0;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
}

[data-theme="minimalist"] .article-item:hover {
  transform: none;
  background-color: #fafafa;
}

[data-theme="minimalist"] h2::before {
  display: none;
}

[data-theme="minimalist"] h2 {
  font-weight: 400;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #000;
  padding-bottom: 0.5rem;
}

/* Terminal - Command-line inspired monospace design with enhanced CRT effects */
[data-theme="terminal"] body {
  font-family: "Courier New", "Consolas", "Liberation Mono", monospace;
  line-height: 1.6;
  background: #0c0c0c;
  position: relative;
}

/* Add CRT scan line effect overlay */
[data-theme="terminal"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgb(0 255 0 / 2%) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 4px;
  }
}

/* Add screen flicker effect */
[data-theme="terminal"] body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(18 16 16 / 10%);
  pointer-events: none;
  z-index: 9998;
  animation: flicker 0.15s infinite;
  opacity: 0%;
}

@keyframes flicker {
  0% {
    opacity: 3%;
  }
  50% {
    opacity: 0%;
  }
  100% {
    opacity: 3%;
  }
}

[data-theme="terminal"] {
  --bg-primary: #0c0c0c;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #262626;
  --bg-hover: #1f1f1f;
  --bg-error: #2d0a0a;
  --text-primary: #3f3;
  --text-secondary: #0c0;
  --text-link: #3f3;
  --text-error: #f33;
  --border-primary: #0f0;
  --border-accent: #3f3;
  --border-success: #0f0;
  --border-error: #f33;
  --shadow-sm: 0 0 10px rgb(0 255 0 / 30%);
  --shadow-md: 0 0 20px rgb(0 255 0 / 40%);
  --shadow-lg: 0 0 30px rgb(0 255 0 / 50%);
  --badge-bg: #0f0;
  --badge-text: #000;
  --gradient-start: #3f3;
  --gradient-end: #0c0;
  --accent-primary: #3f3;
  --accent-success: #0f0;
  --accent-error: #f33;
  --card-bg: rgb(26 26 26 / 95%);
  --card-border: rgb(0 255 0 / 40%);
}

[data-theme="terminal"] .header-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--text-primary);
  font-family: "Courier New", "Consolas", monospace;
  text-shadow:
    0 0 8px rgb(0 255 0 / 80%),
    0 0 15px rgb(0 255 0 / 50%);
  animation: terminal-glow 2s ease-in-out infinite alternate;
}

@keyframes terminal-glow {
  from {
    text-shadow:
      0 0 8px rgb(0 255 0 / 80%),
      0 0 15px rgb(0 255 0 / 50%);
  }
  to {
    text-shadow:
      0 0 12px rgb(0 255 0 / 100%),
      0 0 20px rgb(0 255 0 / 70%);
  }
}

[data-theme="terminal"] .header-title::before {
  content: "$ ";
  color: #0f0;
  text-shadow: 0 0 8px rgb(0 255 0 / 90%);
}

[data-theme="terminal"] .feed-section {
  border: 1px solid #0f0;
  border-radius: 0;
  background-color: #0c0c0c;
  box-shadow:
    0 0 20px rgb(0 255 0 / 15%),
    inset 0 0 40px rgb(0 255 0 / 3%);
}

[data-theme="terminal"] h2 {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgb(0 255 0 / 80%);
  font-family: "Courier New", "Consolas", monospace;
}

[data-theme="terminal"] h2::before {
  content: "> ";
  width: auto;
  height: auto;
  background: none;
  color: #0f0;
  text-shadow: 0 0 8px rgb(0 255 0 / 90%);
}

[data-theme="terminal"] .article-item {
  border-left: 2px solid #0f0;
  border-radius: 0;
  background-color: transparent;
  font-family: "Courier New", "Consolas", monospace;
  box-shadow: -4px 0 8px rgb(0 255 0 / 10%);
}

[data-theme="terminal"] .article-item:hover {
  background-color: #1a1a1a;
  transform: none;
  box-shadow:
    -4px 0 12px rgb(0 255 0 / 30%),
    0 0 20px rgb(0 255 0 / 10%);
  border-left-color: #3f3;
}

[data-theme="terminal"] .article-title {
  color: var(--text-primary);
  text-shadow: 0 0 6px rgb(0 255 0 / 60%);
  font-family: "Courier New", "Consolas", monospace;
}

[data-theme="terminal"] .article-title::before {
  content: "[ ] ";
  color: #0c0;
  text-shadow: 0 0 6px rgb(0 255 0 / 70%);
}

[data-theme="terminal"] .article-item.read .article-title::before {
  content: "[x] ";
  color: #0f0;
}

[data-theme="terminal"] .article-meta,
[data-theme="terminal"] .article-description {
  font-family: "Courier New", "Consolas", monospace;
  color: var(--text-secondary);
  text-shadow: 0 0 4px rgb(0 255 0 / 40%);
}

[data-theme="terminal"] a {
  color: var(--text-primary);
  text-shadow: 0 0 6px rgb(0 255 0 / 60%);
}

[data-theme="terminal"] a:hover {
  color: #0f0;
  text-shadow: 0 0 10px rgb(0 255 0 / 90%);
}

/* Make all buttons and controls monospace */
[data-theme="terminal"] button,
[data-theme="terminal"] select,
[data-theme="terminal"] input {
  font-family: "Courier New", "Consolas", monospace;
  border: 1px solid #0f0;
  background: #1a1a1a;
  color: var(--text-primary);
  text-shadow: 0 0 6px rgb(0 255 0 / 60%);
}

[data-theme="terminal"] button:hover,
[data-theme="terminal"] select:hover {
  box-shadow: 0 0 15px rgb(0 255 0 / 40%);
  border-color: #3f3;
}

/* Magazine - Multi-column magazine layout */
[data-theme="magazine"] {
  --bg-primary: #f8f6f3;
  --bg-secondary: #fff;
  --bg-tertiary: #f0ede8;
  --bg-hover: #e8e4df;
  --bg-error: #fef2f2;
  --text-primary: #2c2416;
  --text-secondary: #6b6257;
  --text-link: #8b4513;
  --text-error: #c00;
  --border-primary: #d4cfc7;
  --border-accent: #8b4513;
  --border-success: #6b8e23;
  --border-error: #c00;
  --shadow-sm: 0 2px 4px rgb(0 0 0 / 10%);
  --shadow-md: 0 4px 8px rgb(0 0 0 / 15%);
  --shadow-lg: 0 8px 16px rgb(0 0 0 / 20%);
  --badge-bg: #8b4513;
  --badge-text: #fff;
  --gradient-start: #8b4513;
  --gradient-end: #a0522d;
  --accent-primary: #8b4513;
  --accent-success: #6b8e23;
  --accent-error: #c00;
  --card-bg: rgb(255 255 255 / 95%);
  --card-border: rgb(212 207 199 / 60%);
}

[data-theme="magazine"] body {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.8;
}

[data-theme="magazine"] .header-title {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 700;
}

[data-theme="magazine"] h2 {
  font-family: "Georgia", serif;
  font-weight: 700;
  font-size: 1.75rem;
  border-bottom: 3px double var(--border-accent);
  padding-bottom: 0.5rem;
}

[data-theme="magazine"] h2::before {
  display: none;
}

[data-theme="magazine"] .article-item {
  border-left: 4px solid var(--border-accent);
  padding-left: 1.5rem;
}

[data-theme="magazine"] .article-title {
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

[data-theme="magazine"] .article-meta {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 0.9rem;
}

/* Glassmorphism - Modern frosted glass effect */
[data-theme="glassmorphism"] {
  --bg-primary: #e0e5ec;
  --bg-secondary: rgb(255 255 255 / 25%);
  --bg-tertiary: rgb(255 255 255 / 40%);
  --bg-hover: rgb(255 255 255 / 55%);
  --bg-error: rgb(255 230 230 / 40%);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-link: #4a4a68;
  --text-error: #c00;
  --border-primary: rgb(255 255 255 / 30%);
  --border-accent: rgb(100 120 255 / 40%);
  --border-success: rgb(0 200 150 / 40%);
  --border-error: rgb(200 0 0 / 40%);
  --shadow-sm: 0 4px 6px rgb(0 0 0 / 5%);
  --shadow-md: 0 8px 12px rgb(0 0 0 / 8%);
  --shadow-lg: 0 12px 20px rgb(0 0 0 / 10%);
  --badge-bg: rgb(100 120 255 / 20%);
  --badge-text: #1a1a2e;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --accent-primary: #667eea;
  --accent-success: #00c896;
  --accent-error: #c00;
  --card-bg: rgb(255 255 255 / 25%);
  --card-border: rgb(255 255 255 / 30%);
}

[data-theme="glassmorphism"] body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
}

[data-theme="glassmorphism"] .header,
[data-theme="glassmorphism"] .feed-section,
[data-theme="glassmorphism"] .sidebar {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
}

[data-theme="glassmorphism"] .article-item {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
}

[data-theme="glassmorphism"] .article-item:hover {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background-color: var(--bg-hover);
  transform: translateY(-2px);
}

/* Glassmorphism fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
  [data-theme="glassmorphism"] .header,
  [data-theme="glassmorphism"] .feed-section,
  [data-theme="glassmorphism"] .sidebar,
  [data-theme="glassmorphism"] .article-item,
  [data-theme="glassmorphism"] .article-item:hover {
    background-color: var(--bg-secondary);
    opacity: 95%;
  }
}

/* Retro - 80s/90s inspired design */
[data-theme="retro"] body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
  line-height: 1.6;
}

[data-theme="retro"] {
  --bg-primary: #ff6b9d;
  --bg-secondary: #ffd93d;
  --bg-tertiary: #6bcf7f;
  --bg-hover: #4ecdc4;
  --bg-error: #ff6b6b;
  --text-primary: #2d3561;
  --text-secondary: #3d4575;
  --text-link: #2d3561;
  --text-error: #c00;
  --border-primary: #2d3561;
  --border-accent: #ff6b9d;
  --border-success: #6bcf7f;
  --border-error: #ff6b6b;
  --shadow-sm: 4px 4px 0 rgb(0 0 0 / 30%);
  --shadow-md: 6px 6px 0 rgb(0 0 0 / 30%);
  --shadow-lg: 8px 8px 0 rgb(0 0 0 / 30%);
  --badge-bg: #ff6b9d;
  --badge-text: #fff;
  --gradient-start: #ff6b9d;
  --gradient-end: #ffd93d;
  --accent-primary: #4ecdc4;
  --accent-success: #6bcf7f;
  --accent-error: #ff6b6b;
  --card-bg: #ffd93d;
  --card-border: #2d3561;
}

[data-theme="retro"] body {
  background: repeating-linear-gradient(
    45deg,
    #ff6b9d,
    #ff6b9d 10px,
    #ffd93d 10px,
    #ffd93d 20px,
    #6bcf7f 20px,
    #6bcf7f 30px,
    #4ecdc4 30px,
    #4ecdc4 40px
  );
  background-size: 200% 200%;
}

[data-theme="retro"] .header {
  border: 4px solid #2d3561;
  border-radius: 0;
  box-shadow: 8px 8px 0 rgb(0 0 0 / 30%);
  background-color: #ffd93d;
}

[data-theme="retro"] .feed-section {
  border: 4px solid #2d3561;
  border-radius: 0;
  box-shadow: 6px 6px 0 rgb(0 0 0 / 30%);
  background-color: #ffd93d;
}

[data-theme="retro"] .article-item {
  border: 3px solid #2d3561;
  border-radius: 0;
  background-color: #6bcf7f;
  box-shadow: 4px 4px 0 rgb(0 0 0 / 30%);
}

[data-theme="retro"] .article-item:hover {
  background-color: #4ecdc4;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgb(0 0 0 / 30%);
}

[data-theme="retro"] h2 {
  text-shadow: 3px 3px 0 rgb(0 0 0 / 30%);
  font-size: 2rem;
}

/* Futuristic - Sci-fi inspired neon design with enhanced glow effects */
[data-theme="futuristic"] body {
  font-family: "Rajdhani", "Exo 2", "Orbitron", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.05em;
  background: radial-gradient(ellipse at center, #13182e 0%, #0a0e27 100%);
  position: relative;
}

/* Add subtle grid background */
[data-theme="futuristic"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgb(0 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 255 255 / 3%) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="futuristic"] {
  --bg-primary: #0a0e27;
  --bg-secondary: #13182e;
  --bg-tertiary: #1a2035;
  --bg-hover: #242d47;
  --bg-error: #2d0a0a;
  --text-primary: #0ff;
  --text-secondary: #0cc;
  --text-link: #0ff;
  --text-error: #f0f;
  --border-primary: #0ff;
  --border-accent: #f0f;
  --border-success: #0f0;
  --border-error: #f0f;
  --shadow-sm: 0 0 15px rgb(0 255 255 / 40%), 0 0 8px rgb(0 255 255 / 30%);
  --shadow-md: 0 0 25px rgb(0 255 255 / 50%), 0 0 15px rgb(0 255 255 / 40%);
  --shadow-lg: 0 0 35px rgb(0 255 255 / 60%), 0 0 20px rgb(0 255 255 / 50%);
  --badge-bg: rgb(0 255 255 / 25%);
  --badge-text: #0ff;
  --gradient-start: #0ff;
  --gradient-end: #f0f;
  --accent-primary: #0ff;
  --accent-success: #0f0;
  --accent-error: #f0f;
  --card-bg: rgb(19 24 46 / 85%);
  --card-border: rgb(0 255 255 / 50%);
}

[data-theme="futuristic"] .header {
  border-bottom: 2px solid #0ff;
  box-shadow:
    0 0 25px rgb(0 255 255 / 40%),
    0 4px 15px rgb(0 255 255 / 30%);
  position: relative;
  background: linear-gradient(
    to bottom,
    rgb(19 24 46 / 90%),
    rgb(10 14 39 / 80%)
  );
}

[data-theme="futuristic"] .header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #0ff 20%,
    #f0f 50%,
    #0ff 80%,
    transparent
  );
  background-size: 200% 100%;
  animation: neon-slide 4s linear infinite;
  filter: blur(2px);
}

@keyframes neon-slide {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pulsing neon glow on header title */
[data-theme="futuristic"] .header-title {
  text-shadow:
    0 0 10px rgb(0 255 255 / 100%),
    0 0 20px rgb(0 255 255 / 80%),
    0 0 30px rgb(0 255 255 / 60%),
    0 0 40px rgb(0 255 255 / 40%);
  animation: neon-pulse 2s ease-in-out infinite alternate;
  color: #0ff;
  font-weight: 700;
  letter-spacing: 0.1em;
}

@keyframes neon-pulse {
  from {
    text-shadow:
      0 0 10px rgb(0 255 255 / 100%),
      0 0 20px rgb(0 255 255 / 80%),
      0 0 30px rgb(0 255 255 / 60%),
      0 0 40px rgb(0 255 255 / 40%);
  }
  to {
    text-shadow:
      0 0 15px rgb(0 255 255 / 100%),
      0 0 30px rgb(0 255 255 / 90%),
      0 0 45px rgb(0 255 255 / 70%),
      0 0 60px rgb(0 255 255 / 50%);
  }
}

[data-theme="futuristic"] .feed-section {
  border: 1px solid #0ff;
  box-shadow:
    0 0 25px rgb(0 255 255 / 30%),
    inset 0 0 30px rgb(0 255 255 / 5%);
  position: relative;
  background: rgb(19 24 46 / 60%);
  backdrop-filter: blur(10px);
}

/* Futuristic theme fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
  [data-theme="futuristic"] .feed-section {
    background: rgb(19 24 46 / 95%);
  }
}

[data-theme="futuristic"] .feed-section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgb(0 255 255 / 40%),
    rgb(255 0 255 / 40%),
    rgb(0 255 255 / 40%)
  );
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  opacity: 30%;
  filter: blur(12px);
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

[data-theme="futuristic"] .article-item {
  border-left: 3px solid #0ff;
  background: linear-gradient(
    90deg,
    rgb(0 255 255 / 12%),
    rgb(0 255 255 / 4%),
    transparent
  );
  position: relative;
  transition: all 0.3s ease;
}

[data-theme="futuristic"] .article-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0ff, #f0f, #0ff);
  background-size: 100% 200%;
  box-shadow: 0 0 15px rgb(0 255 255 / 80%);
  animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

[data-theme="futuristic"] .article-item:hover {
  box-shadow:
    0 0 30px rgb(0 255 255 / 40%),
    inset 0 0 20px rgb(0 255 255 / 10%);
  background: linear-gradient(
    90deg,
    rgb(0 255 255 / 20%),
    rgb(0 255 255 / 8%),
    transparent
  );
  border-left-width: 4px;
}

[data-theme="futuristic"] .article-item:hover::before {
  box-shadow:
    0 0 20px rgb(0 255 255 / 100%),
    0 0 30px rgb(255 0 255 / 50%);
}

[data-theme="futuristic"] h2 {
  text-shadow:
    0 0 10px rgb(0 255 255 / 90%),
    0 0 20px rgb(0 255 255 / 60%),
    0 0 30px rgb(0 255 255 / 40%);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #0ff;
  font-weight: 700;
}

[data-theme="futuristic"] .article-title {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgb(0 255 255 / 70%);
  font-weight: 600;
}

[data-theme="futuristic"] .article-title:hover {
  text-shadow:
    0 0 12px rgb(0 255 255 / 90%),
    0 0 20px rgb(0 255 255 / 60%);
}

[data-theme="futuristic"] .article-meta {
  color: var(--text-secondary);
  text-shadow: 0 0 6px rgb(0 255 255 / 50%);
}

[data-theme="futuristic"] a {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgb(0 255 255 / 70%);
  transition: all 0.3s ease;
}

[data-theme="futuristic"] a:hover {
  text-shadow:
    0 0 15px rgb(0 255 255 / 100%),
    0 0 25px rgb(255 0 255 / 60%);
  color: #0ff;
}

/* Enhanced button styles */
[data-theme="futuristic"] button,
[data-theme="futuristic"] select {
  border: 1px solid #0ff;
  background: rgb(19 24 46 / 80%);
  color: var(--text-primary);
  text-shadow: 0 0 8px rgb(0 255 255 / 70%);
  box-shadow: 0 0 10px rgb(0 255 255 / 30%);
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.05em;
}

[data-theme="futuristic"] button:hover,
[data-theme="futuristic"] select:hover {
  box-shadow:
    0 0 20px rgb(0 255 255 / 60%),
    inset 0 0 10px rgb(0 255 255 / 20%);
  border-color: #f0f;
  background: rgb(19 24 46 / 95%);
}

/* Badge enhancements */
[data-theme="futuristic"] .badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid rgb(0 255 255 / 50%);
  box-shadow: 0 0 10px rgb(0 255 255 / 40%);
  text-shadow: 0 0 6px rgb(0 255 255 / 80%);
}

/* Newspaper - Classic newspaper layout */
[data-theme="newspaper"] body {
  font-family: "Times New Roman", "Georgia", serif;
  line-height: 1.7;
}

[data-theme="newspaper"] {
  --bg-primary: #f5f5dc;
  --bg-secondary: #fafaf0;
  --bg-tertiary: #f0f0e8;
  --bg-hover: #e8e8d8;
  --bg-error: #fff0f0;
  --text-primary: #000;
  --text-secondary: #333;
  --text-link: #000080;
  --text-error: #8b0000;
  --border-primary: #000;
  --border-accent: #000;
  --border-success: #006400;
  --border-error: #8b0000;
  --shadow-sm: 2px 2px 0 rgb(0 0 0 / 10%);
  --shadow-md: 3px 3px 0 rgb(0 0 0 / 15%);
  --shadow-lg: 4px 4px 0 rgb(0 0 0 / 20%);
  --badge-bg: #000;
  --badge-text: #fff;
  --gradient-start: #000;
  --gradient-end: #333;
  --accent-primary: #000080;
  --accent-success: #006400;
  --accent-error: #8b0000;
  --card-bg: #fafaf0;
  --card-border: #000;
}

[data-theme="newspaper"] .header {
  border-top: 4px double #000;
  border-bottom: 4px double #000;
  box-shadow: none;
}

[data-theme="newspaper"] .header-title {
  font-family: "Times New Roman", serif;
  font-weight: 900;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: #000;
}

[data-theme="newspaper"] .feed-section {
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: none;
  padding: 1.5rem;
}

[data-theme="newspaper"] h2 {
  font-family: "Times New Roman", serif;
  font-weight: 900;
  font-size: 1.75rem;
  text-transform: uppercase;
  border-bottom: 2px solid #000;
  letter-spacing: 0.05em;
}

[data-theme="newspaper"] h2::before {
  display: none;
}

[data-theme="newspaper"] .article-item {
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: transparent;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

[data-theme="newspaper"] .article-title {
  font-family: "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
}

[data-theme="newspaper"] .article-meta {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #333;
}

/* Compact - Dense information display */
[data-theme="compact"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
  font-size: 0.875rem;
}

[data-theme="compact"] {
  --bg-primary: #fafafa;
  --bg-secondary: #fff;
  --bg-tertiary: #f5f5f5;
  --bg-hover: #eee;
  --bg-error: #fff0f0;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-link: #1976d2;
  --text-error: #d32f2f;
  --border-primary: #e0e0e0;
  --border-accent: #1976d2;
  --border-success: #388e3c;
  --border-error: #d32f2f;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 8%);
  --shadow-md: 0 2px 4px rgb(0 0 0 / 12%);
  --shadow-lg: 0 3px 6px rgb(0 0 0 / 16%);
  --badge-bg: #1976d2;
  --badge-text: #fff;
  --gradient-start: #1976d2;
  --gradient-end: #2196f3;
  --accent-primary: #1976d2;
  --accent-success: #388e3c;
  --accent-error: #d32f2f;
  --card-bg: #fff;
  --card-border: #e0e0e0;
}

[data-theme="compact"] .header {
  padding: 0.75rem 1.5rem;
}

[data-theme="compact"] .header-title {
  font-size: 1.25rem;
}

[data-theme="compact"] .feed-section {
  padding: 1rem;
  margin-bottom: 1rem;
}

[data-theme="compact"] h2 {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

[data-theme="compact"] .article-item {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

[data-theme="compact"] .article-title {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

[data-theme="compact"] .article-meta {
  font-size: 0.75rem;
}

[data-theme="compact"] .feed-count {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

[data-theme="compact"] .sidebar {
  width: 220px;
}

[data-theme="compact"] .read-indicator {
  width: 1.5rem;
  height: 1.5rem;
}

/* Experimental Themes Section Styling */
.settings-subsection-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-subsection-title svg {
  color: var(--accent-primary);
}

.experimental-themes {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.experimental-disclaimer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.experimental-disclaimer p {
  margin: 0;
  color: var(--text-secondary);
}

.experimental-disclaimer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===================================
   RADICAL LAYOUT EXPERIMENTS
   Completely redesigned page structures with dramatic changes
   =================================== */

/* Sidebar-First - Sidebar dominates the left, tiny content on right */
[data-theme="sidebar-first"] .container {
  flex-direction: row-reverse;
}

[data-theme="sidebar-first"] .sidebar {
  width: 60%;
  border-right: none;
  border-left: 3px solid var(--border-accent);
}

[data-theme="sidebar-first"] .main-content {
  width: 40%;
  font-size: 0.75rem;
}

[data-theme="sidebar-first"] .header {
  flex-direction: column;
  padding: 0.5rem;
  text-align: center;
}

[data-theme="sidebar-first"] .header-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

[data-theme="sidebar-first"] h1 {
  font-size: 1.5rem;
}

[data-theme="sidebar-first"] h2 {
  font-size: 1rem;
}

[data-theme="sidebar-first"] .article-item {
  padding: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Vertical-Cards - Everything stacks vertically, huge cards */
[data-theme="vertical-cards"] .container {
  flex-direction: column;
}

[data-theme="vertical-cards"] .sidebar {
  width: 100%;
  border-left: none;
  border-bottom: 3px solid var(--border-accent);
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  padding: 2rem;
}

[data-theme="vertical-cards"] .feed-nav {
  flex-direction: row;
  gap: 1rem;
  min-width: max-content;
}

[data-theme="vertical-cards"] .nav-link {
  min-width: 150px;
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

[data-theme="vertical-cards"] .main-content {
  width: 100%;
}

[data-theme="vertical-cards"] .feed-section {
  margin-bottom: 4rem;
  padding: 3rem;
}

[data-theme="vertical-cards"] .article-item {
  padding: 2rem;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  border-radius: 1.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[data-theme="vertical-cards"] .article-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

[data-theme="vertical-cards"] h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Horizontal-Scroll - Everything scrolls horizontally */
[data-view="horizontal-scroll"] .container {
  flex-direction: row;
  min-height: auto;
}

[data-view="horizontal-scroll"] .main-content {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 2rem 0;
}

[data-view="horizontal-scroll"] .feed-section {
  display: inline-block;
  vertical-align: top;
  width: 500px;
  margin-right: 2rem;
  white-space: normal;
  height: calc(100vh - 250px);
  overflow-y: auto;
}

/* Sidebar stays on right side with flex-direction: row */

/* Masonry-Grid - Pinterest-style masonry layout */
[data-view="masonry-grid"] .container {
  flex-direction: row;
}

/* Sidebar remains on right side - no override needed */

[data-view="masonry-grid"] .main-content {
  padding: 2rem;
}

[data-view="masonry-grid"] .feed-section {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-view="masonry-grid"] .article-list {
  column-count: 3;
  column-gap: 1.5rem;
  margin: 0;
}

[data-view="masonry-grid"] .article-item {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  display: inline-block;
  width: 100%;
}

[data-view="masonry-grid"] h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

@media (width <= 1200px) {
  [data-view="masonry-grid"] .article-list {
    column-count: 2;
  }
}

@media (width <= 768px) {
  [data-view="masonry-grid"] .article-list {
    column-count: 1;
  }
}

/* Split-Screen - Page divided into two equal halves */
[data-theme="split-screen"] .container {
  flex-direction: row;
}

[data-theme="split-screen"] .main-content {
  width: 50%;
  border-right: 3px solid var(--border-accent);
}

[data-theme="split-screen"] .sidebar {
  width: 50%;
  border-left: none;
  position: relative;
}

[data-theme="split-screen"] .header {
  padding: 3rem 2rem;
  background: var(--bg-primary);
}

[data-theme="split-screen"] .header-title {
  font-size: 3rem;
  text-align: center;
}

[data-theme="split-screen"] .feed-section {
  padding: 2rem;
}

[data-theme="split-screen"] h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

[data-theme="split-screen"] .article-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Giant-Text - Enormous typography-focused layout */
[data-theme="giant-text"] {
  font-size: 1.5rem;
}

[data-theme="giant-text"] .header-title {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

[data-theme="giant-text"] h1 {
  font-size: 4rem;
  font-weight: 900;
}

[data-theme="giant-text"] h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 3rem 0 2rem;
}

[data-theme="giant-text"] h2::before {
  width: 8px;
  height: 3rem;
}

[data-theme="giant-text"] .article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

[data-theme="giant-text"] .article-meta {
  font-size: 1.25rem;
}

[data-theme="giant-text"] .feed-section {
  padding: 3rem;
  margin-bottom: 4rem;
}

[data-theme="giant-text"] .article-item {
  padding: 2.5rem;
  margin-bottom: 2rem;
}

[data-theme="giant-text"] .sidebar {
  width: 350px;
}

[data-theme="giant-text"] .nav-link {
  font-size: 1.5rem;
  padding: 1.5rem;
}

/* Tiny-Text - Minimalist ultra-compact layout */
[data-theme="tiny-text"] {
  font-size: 0.625rem;
  line-height: 1.3;
}

[data-theme="tiny-text"] .header {
  padding: 0.5rem 1rem;
}

[data-theme="tiny-text"] .header-title {
  font-size: 0.875rem;
}

[data-theme="tiny-text"] .container {
  min-height: calc(100vh - 40px);
}

[data-theme="tiny-text"] .main-content {
  padding: 0.5rem;
}

[data-theme="tiny-text"] .sidebar {
  width: 180px;
}

[data-theme="tiny-text"] h1 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

[data-theme="tiny-text"] h2 {
  font-size: 0.75rem;
  margin: 0.5rem 0 0.25rem;
}

[data-theme="tiny-text"] h2::before {
  width: 2px;
  height: 0.5rem;
}

[data-theme="tiny-text"] .feed-section {
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}

[data-theme="tiny-text"] .article-item {
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  margin-bottom: 0.125rem;
}

[data-theme="tiny-text"] .article-title {
  font-size: 0.625rem;
  margin-bottom: 0.125rem;
}

[data-theme="tiny-text"] .article-meta {
  font-size: 0.5rem;
}

[data-theme="tiny-text"] .nav-link {
  padding: 0.5rem;
  font-size: 0.625rem;
}

[data-theme="tiny-text"] .read-indicator {
  width: 1rem;
  height: 1rem;
  top: 0.25rem;
  right: 0.25rem;
}

[data-theme="tiny-text"] .read-indicator svg {
  width: 8px;
  height: 8px;
}

/* Floating-Panels - Articles float as draggable-looking panels */
[data-view="floating-panels"] .feed-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2rem 0;
}

[data-view="floating-panels"] .article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

[data-view="floating-panels"] .article-item {
  background: var(--card-bg);
  border: 2px solid var(--border-accent);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
  transform: rotate(0deg);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-view="floating-panels"] .article-item:nth-child(3n + 1) {
  transform: rotate(-2deg);
}

[data-view="floating-panels"] .article-item:nth-child(3n + 2) {
  transform: rotate(1deg);
}

[data-view="floating-panels"] .article-item:nth-child(3n) {
  transform: rotate(-1deg);
}

[data-view="floating-panels"] .article-item:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
  z-index: 10;
}

[data-view="floating-panels"] .article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

[data-view="floating-panels"] h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Center-Stage - Everything centered, single column */
[data-view="center-stage"] .container {
  flex-direction: row;
}

[data-view="center-stage"] .header {
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
}

[data-view="center-stage"] .header-title {
  font-size: 4rem;
  font-weight: 900;
  justify-content: center;
}

[data-view="center-stage"] .header-controls {
  justify-content: center;
  margin-top: 1.5rem;
}

[data-view="center-stage"] .main-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Sidebar stays on right side with flex-direction: row */

[data-view="center-stage"] .feed-section {
  text-align: center;
  padding: 3rem 2rem;
}

[data-view="center-stage"] h1,
[data-view="center-stage"] h2,
[data-view="center-stage"] h3 {
  text-align: center;
}

[data-view="center-stage"] h2 {
  font-size: 2.5rem;
}

[data-view="center-stage"] .article-item {
  text-align: left;
  padding: 2rem;
  margin: 1.5rem auto;
  max-width: 700px;
}

[data-view="center-stage"] .article-title {
  font-size: 1.5rem;
}

/* Bottom-Heavy - Sidebar at bottom, content fills top */
[data-theme="bottom-heavy"] .container {
  flex-direction: column-reverse;
}

[data-theme="bottom-heavy"] .sidebar {
  width: 100%;
  border-left: none;
  border-top: 3px solid var(--border-accent);
  height: 300px;
}

[data-theme="bottom-heavy"] .sidebar-content {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 1rem;
}

[data-theme="bottom-heavy"] .feed-nav {
  flex-direction: row;
  gap: 1rem;
  min-width: max-content;
}

[data-theme="bottom-heavy"] .nav-link {
  min-width: 200px;
  padding: 1.5rem;
  font-size: 1.25rem;
}

[data-theme="bottom-heavy"] .main-content {
  flex: 1;
  padding: 2rem;
}

[data-theme="bottom-heavy"] .header {
  padding: 2rem;
}

[data-theme="bottom-heavy"] .header-title {
  font-size: 2.5rem;
}

[data-theme="bottom-heavy"] h2 {
  font-size: 2rem;
}

/* Diagonal-Split - Content split diagonally */
[data-theme="diagonal-split"] .container {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-secondary) 48%,
    var(--border-accent) 48%,
    var(--border-accent) 52%,
    var(--bg-tertiary) 52%,
    var(--bg-tertiary) 100%
  );
}

[data-theme="diagonal-split"] .main-content {
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

[data-theme="diagonal-split"] .sidebar {
  background: transparent;
}

[data-theme="diagonal-split"] .feed-section {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
}

/* Diagonal-split theme fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
  [data-theme="diagonal-split"] .feed-section {
    background-color: var(--bg-secondary);
    opacity: 95%;
  }
}

[data-theme="diagonal-split"] .article-item {
  background: var(--bg-secondary);
}

/* Circular-Nav - Articles in circular layout */
[data-theme="circular-nav"] .sidebar {
  display: none;
}

[data-theme="circular-nav"] .main-content {
  width: 100%;
  padding: 3rem;
}

[data-theme="circular-nav"] .feed-section {
  margin-bottom: 4rem;
}

[data-theme="circular-nav"] .article-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

[data-theme="circular-nav"] .article-item {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  transition: all 0.4s ease;
}

[data-theme="circular-nav"] .article-item:hover {
  transform: scale(1.15) rotate(5deg);
  z-index: 10;
}

[data-theme="circular-nav"] .article-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="circular-nav"] .article-meta {
  font-size: 0.75rem;
}

[data-theme="circular-nav"] .read-indicator {
  top: 20px;
  right: 20px;
}

/* ===================================
   REAL-WORLD INSPIRED LAYOUTS
   Based on popular news sites and modern blog designs
   =================================== */

/* Hero-Featured - NYT/Washington Post style with prominent top story */
[data-theme="hero-featured"] .main-content {
  padding: 0;
}

[data-theme="hero-featured"] .feed-section:first-of-type {
  background: var(--bg-primary);
  border: none;
  border-bottom: 3px solid var(--border-accent);
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

[data-theme="hero-featured"]
  .feed-section:first-of-type
  .article-item:first-child {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: #fff;
  padding: 6rem 4rem;
  border-radius: 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

[data-theme="hero-featured"]
  .feed-section:first-of-type
  .article-item:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 70%) 0%, transparent 100%);
  z-index: 0;
}

[data-theme="hero-featured"]
  .feed-section:first-of-type
  .article-item:first-child
  * {
  position: relative;
  z-index: 1;
}

[data-theme="hero-featured"]
  .feed-section:first-of-type
  .article-item:first-child
  .article-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgb(0 0 0 / 50%);
}

[data-theme="hero-featured"]
  .feed-section:first-of-type
  .article-item:first-child
  .article-meta {
  font-size: 1.25rem;
  color: rgb(255 255 255 / 90%);
}

[data-theme="hero-featured"] .feed-section:first-of-type .article-list {
  display: grid;
  grid-template-columns: 1fr;
}

[data-theme="hero-featured"] .feed-section {
  padding: 2rem;
  background: var(--bg-secondary);
  margin-bottom: 0;
  border-radius: 0;
}

/* Grid-Cards - BBC/Bloomberg style grid layout */
[data-theme="grid-cards"] .container {
  flex-direction: column;
}

[data-theme="grid-cards"] .sidebar {
  width: 100%;
  border-left: none;
  border-bottom: 1px solid var(--border-primary);
  height: auto;
  padding: 1rem 2rem;
}

[data-theme="grid-cards"] .sidebar-content {
  overflow-x: auto;
}

[data-theme="grid-cards"] .feed-nav {
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

[data-theme="grid-cards"] .main-content {
  padding: 2rem;
}

[data-theme="grid-cards"] .feed-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

[data-theme="grid-cards"] .article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

[data-theme="grid-cards"] .article-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

[data-theme="grid-cards"] .article-item::before {
  content: "";
  display: block;
  width: 100%;
  height: 180px;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
}

[data-theme="grid-cards"] .article-title {
  padding: 1.25rem 1.25rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

[data-theme="grid-cards"] .article-meta {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.85rem;
  margin-top: auto;
}

[data-theme="grid-cards"] h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--border-accent);
}

/* Sidebar-Magazine - The Hill/HuffPost style with large sidebar */
[data-theme="sidebar-magazine"] .sidebar {
  width: 400px;
  background: var(--bg-tertiary);
  padding: 2rem;
}

[data-theme="sidebar-magazine"] .sidebar-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[data-theme="sidebar-magazine"] .nav-link {
  padding: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

[data-theme="sidebar-magazine"] .nav-link:hover,
[data-theme="sidebar-magazine"] .nav-link.active {
  border-left-color: var(--border-accent);
  background: var(--bg-hover);
  transform: translateX(0);
  padding-left: 1.5rem;
}

[data-theme="sidebar-magazine"] .main-content {
  flex: 1;
  padding: 2rem 3rem;
}

[data-theme="sidebar-magazine"] .feed-section {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border-primary);
  padding-bottom: 2rem;
}

[data-theme="sidebar-magazine"] h2 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

[data-theme="sidebar-magazine"] .article-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-primary);
  background: transparent;
}

[data-theme="sidebar-magazine"] .article-item:last-child {
  border-bottom: none;
}

[data-theme="sidebar-magazine"] .article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Top-Strip - Drudge Report style with navigation strip on top */
[data-view="top-strip"] .container {
  flex-direction: row;
}

[data-view="top-strip"] .header {
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-accent);
}

/* Sidebar stays on right side with flex-direction: row */

[data-view="top-strip"] .main-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

[data-view="top-strip"] .article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

[data-view="top-strip"] .article-item {
  padding: 1.5rem;
}

/* List-Dense - Reddit/Hacker News style minimal list */
[data-view="list-dense"] {
  font-family: "Verdana", "Arial", sans-serif;
  font-size: 0.875rem;
}

[data-view="list-dense"] .container {
  flex-direction: row;
}

[data-view="list-dense"] .header {
  padding: 0.5rem 1rem;
  background: var(--border-accent);
  border: none;
}

[data-view="list-dense"] .header-title {
  font-size: 1.5rem;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

/* Sidebar stays on right side with flex-direction: row */

[data-view="list-dense"] .main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--bg-secondary);
}

[data-view="list-dense"] .feed-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
}

[data-view="list-dense"] h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-primary);
  padding-bottom: 0.5rem;
}

[data-view="list-dense"] h2::before {
  display: none;
}

[data-view="list-dense"] .article-list {
  list-style: none;
}

[data-view="list-dense"] .article-item {
  background: transparent;
  border: none;
  border-bottom: 1px dotted var(--border-primary);
  padding: 0.5rem 0;
  border-radius: 0;
}

[data-view="list-dense"] .article-item:hover {
  background: var(--bg-tertiary);
  padding-left: 0.5rem;
}

[data-view="list-dense"] .article-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

[data-view="list-dense"] .article-title::before {
  content: "▸ ";
  color: var(--border-accent);
  font-weight: 700;
}

[data-view="list-dense"] .article-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Timeline-Vertical - Medium/Substack style vertical timeline */
[data-view="timeline-vertical"] .container {
  flex-direction: row;
}

[data-view="timeline-vertical"] .main-content {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* Sidebar stays on right side with flex-direction: row */

[data-view="timeline-vertical"] .feed-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 3rem 2rem;
  margin: 0;
  border-bottom: 1px solid var(--border-primary);
}

[data-view="timeline-vertical"] h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

[data-view="timeline-vertical"] h2::before {
  display: none;
}

[data-view="timeline-vertical"] .article-list {
  position: relative;
  padding-left: 3rem;
}

[data-view="timeline-vertical"] .article-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-accent);
}

[data-view="timeline-vertical"] .article-item {
  background: transparent;
  border: none;
  padding: 2rem 0 2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
}

[data-view="timeline-vertical"] .article-item::before {
  content: "";
  position: absolute;
  left: -3.5rem;
  top: 2.5rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--border-accent);
  border: 3px solid var(--bg-secondary);
}

[data-view="timeline-vertical"] .article-item:hover {
  background: var(--bg-tertiary);
  border-radius: 0.75rem;
  padding-left: 2.5rem;
}

[data-view="timeline-vertical"] .article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

[data-view="timeline-vertical"] .article-meta {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Carousel-Featured - Auto-rotating featured stories */
[data-theme="carousel-featured"] .main-content {
  padding: 0;
}

[data-theme="carousel-featured"] .feed-section {
  background: var(--bg-secondary);
  border-radius: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border-primary);
}

[data-theme="carousel-featured"] .article-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
}

[data-theme="carousel-featured"] .article-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  position: relative;
  border-radius: 0;
}

[data-theme="carousel-featured"] .article-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 60%) 0%, transparent 60%);
}

[data-theme="carousel-featured"] .article-item > * {
  position: relative;
  z-index: 1;
}

[data-theme="carousel-featured"] .article-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

[data-theme="carousel-featured"] .article-meta {
  font-size: 1.25rem;
  color: rgb(255 255 255 / 90%);
}

[data-theme="carousel-featured"] h2 {
  padding: 2rem;
  font-size: 2rem;
  background: var(--bg-tertiary);
  margin: 0;
}

/* ===================================
   LIGHT MODE VARIANTS FOR ALL EXPERIMENTAL THEMES
   Each experimental theme now has a -light variant
   =================================== */

/* Purple Haze Light */
[data-theme="purple-haze-light"] {
  --bg-primary: #faf5ff;
  --bg-secondary: #fef3ff;
  --bg-tertiary: #f3e8ff;
  --bg-hover: #e9d5ff;
  --bg-error: #fef2f2;
  --text-primary: #581c87;
  --text-secondary: #7e22ce;
  --text-link: #9333ea;
  --text-error: #dc2626;
  --border-primary: #e9d5ff;
  --border-accent: #a855f7;
  --border-success: #8b5cf6;
  --border-error: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 8%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 12%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 16%);
  --badge-bg: #f3e8ff;
  --badge-text: #6b21a8;
  --gradient-start: #9333ea;
  --gradient-end: #c084fc;
  --accent-primary: #a855f7;
  --accent-success: #8b5cf6;
  --accent-error: #dc2626;
  --card-bg: rgb(254 243 255 / 80%);
  --card-border: rgb(233 213 255 / 60%);
}

/* Ocean Deep Light */
[data-theme="ocean-deep-light"] {
  --bg-primary: #ecfeff;
  --bg-secondary: #f0fdfa;
  --bg-tertiary: #ccfbf1;
  --bg-hover: #99f6e4;
  --bg-error: #fef2f2;
  --text-primary: #164e63;
  --text-secondary: #0e7490;
  --text-link: #0891b2;
  --text-error: #dc2626;
  --border-primary: #a5f3fc;
  --border-accent: #06b6d4;
  --border-success: #14b8a6;
  --border-error: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 8%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 12%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 16%);
  --badge-bg: #cffafe;
  --badge-text: #0e7490;
  --gradient-start: #0891b2;
  --gradient-end: #06b6d4;
  --accent-primary: #06b6d4;
  --accent-success: #14b8a6;
  --accent-error: #dc2626;
  --card-bg: rgb(240 253 250 / 80%);
  --card-border: rgb(165 243 252 / 60%);
}

/* Dracula Light - Inverted Dracula colors */
[data-theme="dracula-light"] {
  --bg-primary: #f8f8f2;
  --bg-secondary: #fff;
  --bg-tertiary: #f0f0eb;
  --bg-hover: #e8e8e3;
  --bg-error: #fef2f2;
  --text-primary: #282a36;
  --text-secondary: #44475a;
  --text-link: #6272a4;
  --text-error: #f55;
  --border-primary: #e0e0db;
  --border-accent: #bd93f9;
  --border-success: #50fa7b;
  --border-error: #f55;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 8%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 12%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 16%);
  --badge-bg: #f0f0eb;
  --badge-text: #282a36;
  --gradient-start: #bd93f9;
  --gradient-end: #ff79c6;
  --accent-primary: #8be9fd;
  --accent-success: #50fa7b;
  --accent-error: #f55;
  --card-bg: rgb(255 255 255 / 80%);
  --card-border: rgb(224 224 219 / 60%);
}

/* Monochrome Light - Black & white light mode */
[data-theme="monochrome-light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #fff;
  --bg-tertiary: #f0f0f0;
  --bg-hover: #e8e8e8;
  --bg-error: #fef2f2;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-link: #2a2a2a;
  --text-error: #5a5a5a;
  --border-primary: #e0e0e0;
  --border-accent: #8a8a8a;
  --border-success: #6a6a6a;
  --border-error: #5a5a5a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 8%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 12%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 16%);
  --badge-bg: #f0f0f0;
  --badge-text: #2a2a2a;
  --gradient-start: #e0e0e0;
  --gradient-end: #a0a0a0;
  --accent-primary: #6a6a6a;
  --accent-success: #6a6a6a;
  --accent-error: #5a5a5a;
  --card-bg: rgb(255 255 255 / 80%);
  --card-border: rgb(224 224 224 / 60%);
}

/* Arctic Blue Dark - Dark variant of Arctic Blue */
[data-theme="arctic-blue-dark"] {
  --bg-primary: #0c1922;
  --bg-secondary: #142532;
  --bg-tertiary: #1e3a4c;
  --bg-hover: #2a4f68;
  --bg-error: #2d0a0a;
  --text-primary: #e0f2fe;
  --text-secondary: #bae6fd;
  --text-link: #7dd3fc;
  --text-error: #f87171;
  --border-primary: #1e3a4c;
  --border-accent: #0284c7;
  --border-success: #0ea5e9;
  --border-error: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 35%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 45%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 55%);
  --badge-bg: #164e63;
  --badge-text: #bae6fd;
  --gradient-start: #0284c7;
  --gradient-end: #0ea5e9;
  --accent-primary: #0284c7;
  --accent-success: #0ea5e9;
  --accent-error: #dc2626;
  --card-bg: rgb(20 37 50 / 70%);
  --card-border: rgb(30 58 76 / 50%);
}

/* Note: Some themes like Terminal, Retro, Futuristic are designed to be dark-only
   due to their specific aesthetic (green-on-black terminal, neon effects, etc.)
   Light variants would lose their character, so they remain dark-only. */

/* Note: Layout-based themes (Minimalist, Magazine, etc.) automatically adapt
   to light mode using the base :root variables, so no separate variants needed. */
/* =================================
   ACCESSIBILITY & UX IMPROVEMENTS
   ================================= */

/* Skip to main content link for screen readers */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem 1.5rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid var(--border-accent);
}

.skip-to-main:focus {
  left: 1rem;
  top: 1rem;
  outline: 3px solid var(--border-accent);
  outline-offset: 2px;
}

/* Ensure all buttons meet minimum touch target size (44x44px) */
button,
.settings-button,
.theme-toggle,
.reset-read-button,
.settings-back-button,
.nav-toggle,
.sidebar-toggle {
  min-height: 44px;
  min-width: 44px;
}

/* Improve focus visibility for all interactive elements */
a:focus,
button:focus,
select:focus,
input:focus,
.settings-menu-item:focus,
.nav-link:focus,
.article-title:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* High contrast focus for better visibility */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--border-accent);
  outline-offset: 3px;
}

/* Improve article item accessibility and touch targets in card view */
[data-view="card"] .article-item {
  min-height: 60px; /* Ensure adequate touch target */
}

/* Better touch targets on mobile for article links in card view */
@media (max-width: 768px) {
  [data-view="card"] .article-item {
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    min-height: 72px;
  }

  [data-view="card"] .article-title {
    font-size: 1.0625rem;
    line-height: 1.6;
  }
}

/* Settings menu items need proper button styling for keyboard nav */
.settings-menu-item {
  cursor: pointer;
  outline: none; /* Will use focus styles */
}

.settings-menu-item:focus {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Ensure adequate button sizing on all viewports */
.header-controls button {
  min-height: 44px;
  padding: 0.625rem 1.25rem;
}

@media (max-width: 768px) {
  .header-controls button {
    min-height: 48px;
    min-width: 48px;
    padding: 0.75rem 1rem;
  }
}

/* Improve select dropdowns for touch */
select,
.view-select,
.timeframe-select,
.settings-select {
  min-height: 44px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
}

@media (max-width: 768px) {
  select,
  .view-select,
  .timeframe-select,
  .settings-select {
    min-height: 48px;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 1rem;
  }
}

/* Improved checkbox touch targets */
.feed-checkbox-item input[type="checkbox"] {
  min-width: 20px;
  min-height: 20px;
  margin-right: 0.75rem;
}

.feed-checkbox-item label {
  cursor: pointer;
  padding: 0.75rem 0;
  display: inline-block;
}

/* Better visual feedback for interactive elements */
.article-item:focus-within {
  outline: 2px solid var(--border-accent);
  outline-offset: 2px;
  border-radius: 0.75rem;
}

/* Improve settings action button sizing */
.settings-action-button {
  min-height: 44px;
  min-width: 120px;
  padding: 0.75rem 1.5rem;
}

/* Responsive header improvements */
@media (max-width: 1024px) {
  .header {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .header-controls {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .header-title {
    font-size: 1.25rem;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* Settings sidebar responsive improvements */
@media (max-width: 1024px) {
  .settings-container {
    flex-direction: column;
  }

  .settings-sidebar {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-primary);
  }

  .settings-menu {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .settings-menu-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Improve color contrast for better readability */
.article-meta {
  /* Ensure sufficient contrast */
  opacity: 90%;
}

.read .article-item {
  /* Improve read article visibility */
  opacity: 65%;
}

/* Better theme transition */
* {
  transition-property: background-color, border-color, color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Prevent transition on page load */
.preload * {
  transition: none !important;
}

/* Ensure smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.1s !important;
    animation-duration: 0.1s !important;
  }
}

/* ARIA live region styling */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Better nav link sizing for touch */
.nav-link {
  min-height: 44px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-link {
    min-height: 48px;
    padding: 1rem 1.25rem;
  }
}

/* =================================
   LOADING STATES
   ================================= */

.loading {
  position: relative;
  pointer-events: none;
  opacity: 60%;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid var(--border-primary);
  border-top-color: var(--border-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Loading overlay for larger elements */
.loading-overlay {
  position: relative;
  pointer-events: none;
}

.loading-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(2px);
  z-index: 100;
  border-radius: inherit;
}

.loading-overlay::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border: 3px solid var(--border-primary);
  border-top-color: var(--border-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 101;
}

/* =================================
   TOAST NOTIFICATIONS
   ================================= */

.toast-container {
  position: fixed;
  top: 5rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 500px;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease-out;
  transition: all 0.3s ease;
}

.toast.toast-exit {
  animation: toast-slide-out 0.3s ease-in;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(120%);
    opacity: 0%;
  }

  to {
    transform: translateX(0);
    opacity: 100%;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 100%;
  }

  to {
    transform: translateX(120%);
    opacity: 0%;
  }
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-content {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

.toast-success {
  border-left: 4px solid var(--accent-success);
}

.toast-success .toast-icon {
  color: var(--accent-success);
}

.toast-error {
  border-left: 4px solid var(--accent-error);
}

.toast-error .toast-icon {
  color: var(--accent-error);
}

.toast-info {
  border-left: 4px solid var(--accent-primary);
}

.toast-info .toast-icon {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .toast-container {
    right: 1rem;
    left: 1rem;
    top: 4rem;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* =================================
   EXTERNAL LINK INDICATORS
   ================================= */

.external-link-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 0.25rem;
  vertical-align: middle;
  opacity: 75%;
  transition: opacity 0.2s ease;
}

a:hover .external-link-icon {
  opacity: 100%;
}

@media (max-width: 768px) {
  .external-link-icon {
    width: 14px;
    height: 14px;
  }
}

/* ===================================
   LIGHT MODE VARIANTS FOR THEMED STYLES
   Light variants for minimalist, terminal, retro, futuristic, and compact themes
   =================================== */

/* Minimalist Light - Ultra-clean, minimal design with light colors */
[data-theme="minimalist-light"] body {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

[data-theme="minimalist-light"] {
  --bg-primary: #fff;
  --bg-secondary: #fff;
  --bg-tertiary: #fafafa;
  --bg-hover: #f5f5f5;
  --bg-error: #fff0f0;
  --text-primary: #000;
  --text-secondary: #666;
  --text-link: #000;
  --text-error: #d00;
  --border-primary: #e0e0e0;
  --border-accent: #000;
  --border-success: #000;
  --border-error: #d00;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --badge-bg: #000;
  --badge-text: #fff;
  --gradient-start: #000;
  --gradient-end: #333;
  --accent-primary: #000;
  --accent-success: #000;
  --accent-error: #d00;
  --card-bg: #fff;
  --card-border: #e0e0e0;
}

[data-theme="minimalist-light"] .header {
  border-bottom: 1px solid #000;
  box-shadow: none;
}

[data-theme="minimalist-light"] .feed-section {
  border: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="minimalist-light"] .article-item {
  border-radius: 0;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
}

[data-theme="minimalist-light"] .article-item:hover {
  transform: none;
  background-color: #fafafa;
}

[data-theme="minimalist-light"] h2::before {
  display: none;
}

[data-theme="minimalist-light"] h2 {
  font-weight: 400;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #000;
  padding-bottom: 0.5rem;
}

/* Terminal Light - Command-line inspired with dark text on light background */
[data-theme="terminal-light"] body {
  font-family: "Courier New", "Consolas", "Liberation Mono", monospace;
  line-height: 1.6;
  background: #f0f0f0;
  position: relative;
}

/* Add subtle scan line effect overlay */
[data-theme="terminal-light"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgb(0 100 0 / 1%) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines-light {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 4px;
  }
}

/* Add subtle flicker effect */
[data-theme="terminal-light"] body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(200 200 200 / 5%);
  pointer-events: none;
  z-index: 9998;
  animation: flicker-light 0.15s infinite;
  opacity: 0%;
}

@keyframes flicker-light {
  0% {
    opacity: 2%;
  }
  50% {
    opacity: 0%;
  }
  100% {
    opacity: 2%;
  }
}

[data-theme="terminal-light"] {
  --bg-primary: #f0f0f0;
  --bg-secondary: #fafafa;
  --bg-tertiary: #fff;
  --bg-hover: #e8e8e8;
  --bg-error: #fff0f0;
  --text-primary: #060;
  --text-secondary: #080;
  --text-link: #060;
  --text-error: #c00;
  --border-primary: #0a0;
  --border-accent: #060;
  --border-success: #0a0;
  --border-error: #c00;
  --shadow-sm: 0 0 5px rgb(0 100 0 / 15%);
  --shadow-md: 0 0 10px rgb(0 100 0 / 20%);
  --shadow-lg: 0 0 15px rgb(0 100 0 / 25%);
  --badge-bg: #0a0;
  --badge-text: #fff;
  --gradient-start: #060;
  --gradient-end: #080;
  --accent-primary: #060;
  --accent-success: #0a0;
  --accent-error: #c00;
  --card-bg: rgb(250 250 250 / 95%);
  --card-border: rgb(0 170 0 / 30%);
}

[data-theme="terminal-light"] .header-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--text-primary);
  font-family: "Courier New", "Consolas", monospace;
  text-shadow:
    0 0 4px rgb(0 100 0 / 40%),
    0 0 8px rgb(0 100 0 / 25%);
  animation: terminal-glow-light 2s ease-in-out infinite alternate;
}

@keyframes terminal-glow-light {
  from {
    text-shadow:
      0 0 4px rgb(0 100 0 / 40%),
      0 0 8px rgb(0 100 0 / 25%);
  }
  to {
    text-shadow:
      0 0 6px rgb(0 100 0 / 50%),
      0 0 10px rgb(0 100 0 / 35%);
  }
}

[data-theme="terminal-light"] .header-title::before {
  content: "$ ";
  color: #0a0;
  text-shadow: 0 0 4px rgb(0 170 0 / 45%);
}

[data-theme="terminal-light"] .feed-section {
  border: 1px solid #0a0;
  border-radius: 0;
  background-color: #fafafa;
  box-shadow:
    0 0 10px rgb(0 100 0 / 8%),
    inset 0 0 20px rgb(0 100 0 / 2%);
}

[data-theme="terminal-light"] h2 {
  color: var(--text-primary);
  text-shadow: 0 0 4px rgb(0 100 0 / 40%);
  font-family: "Courier New", "Consolas", monospace;
}

[data-theme="terminal-light"] h2::before {
  content: "> ";
  width: auto;
  height: auto;
  background: none;
  color: #0a0;
  text-shadow: 0 0 4px rgb(0 170 0 / 45%);
}

[data-theme="terminal-light"] .article-item {
  border-left: 2px solid #0a0;
  border-radius: 0;
  background-color: transparent;
  font-family: "Courier New", "Consolas", monospace;
  box-shadow: -4px 0 4px rgb(0 100 0 / 5%);
}

[data-theme="terminal-light"] .article-item:hover {
  background-color: #fff;
  transform: none;
  box-shadow:
    -4px 0 6px rgb(0 100 0 / 15%),
    0 0 10px rgb(0 100 0 / 5%);
  border-left-color: #060;
}

[data-theme="terminal-light"] .article-title {
  color: var(--text-primary);
  text-shadow: 0 0 3px rgb(0 100 0 / 30%);
  font-family: "Courier New", "Consolas", monospace;
}

[data-theme="terminal-light"] .article-title::before {
  content: "[ ] ";
  color: #080;
  text-shadow: 0 0 3px rgb(0 100 0 / 35%);
}

[data-theme="terminal-light"] .article-item.read .article-title::before {
  content: "[x] ";
  color: #0a0;
}

[data-theme="terminal-light"] .article-meta,
[data-theme="terminal-light"] .article-description {
  font-family: "Courier New", "Consolas", monospace;
  color: var(--text-secondary);
  text-shadow: 0 0 2px rgb(0 100 0 / 20%);
}

[data-theme="terminal-light"] a {
  color: var(--text-primary);
  text-shadow: 0 0 3px rgb(0 100 0 / 30%);
}

[data-theme="terminal-light"] a:hover {
  color: #0a0;
  text-shadow: 0 0 5px rgb(0 170 0 / 45%);
}

/* Make all buttons and controls monospace */
[data-theme="terminal-light"] button,
[data-theme="terminal-light"] select,
[data-theme="terminal-light"] input {
  font-family: "Courier New", "Consolas", monospace;
  border: 1px solid #0a0;
  background: #fff;
  color: var(--text-primary);
  text-shadow: 0 0 3px rgb(0 100 0 / 30%);
}

[data-theme="terminal-light"] button:hover,
[data-theme="terminal-light"] select:hover {
  box-shadow: 0 0 8px rgb(0 100 0 / 20%);
  border-color: #060;
}

/* Retro Light - 80s/90s inspired with pastel colors on white */
[data-theme="retro-light"] body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
  line-height: 1.6;
}

[data-theme="retro-light"] {
  --bg-primary: #fff;
  --bg-secondary: #fffaf0;
  --bg-tertiary: #fff5ee;
  --bg-hover: #ffe4e1;
  --bg-error: #ffebe9;
  --text-primary: #2d3561;
  --text-secondary: #4d5585;
  --text-link: #ff1493;
  --text-error: #c00;
  --border-primary: #ff69b4;
  --border-accent: #ff1493;
  --border-success: #32cd32;
  --border-error: #ff6347;
  --shadow-sm: 3px 3px 0 rgb(255 105 180 / 25%);
  --shadow-md: 5px 5px 0 rgb(255 105 180 / 30%);
  --shadow-lg: 7px 7px 0 rgb(255 105 180 / 35%);
  --badge-bg: #ff69b4;
  --badge-text: #fff;
  --gradient-start: #ff69b4;
  --gradient-end: #ffd700;
  --accent-primary: #ff1493;
  --accent-success: #32cd32;
  --accent-error: #ff6347;
  --card-bg: #fffaf0;
  --card-border: #ff69b4;
}

[data-theme="retro-light"] body {
  background: repeating-linear-gradient(
    45deg,
    #ffe4e1,
    #ffe4e1 10px,
    #fff5ee 10px,
    #fff5ee 20px,
    #f0fff0 20px,
    #f0fff0 30px,
    #e0ffff 30px,
    #e0ffff 40px
  );
  background-size: 200% 200%;
}

[data-theme="retro-light"] .header {
  border: 4px solid #ff69b4;
  border-radius: 0;
  box-shadow: 6px 6px 0 rgb(255 105 180 / 30%);
  background-color: #fffaf0;
}

[data-theme="retro-light"] .feed-section {
  border: 4px solid #ff69b4;
  border-radius: 0;
  box-shadow: 5px 5px 0 rgb(255 105 180 / 30%);
  background-color: #fffaf0;
}

[data-theme="retro-light"] .article-item {
  border: 3px solid #ff69b4;
  border-radius: 0;
  background-color: #f0fff0;
  box-shadow: 3px 3px 0 rgb(255 105 180 / 25%);
}

[data-theme="retro-light"] .article-item:hover {
  background-color: #e0ffff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgb(255 105 180 / 30%);
}

[data-theme="retro-light"] h2 {
  text-shadow: 2px 2px 0 rgb(255 105 180 / 25%);
  font-size: 2rem;
  color: #ff1493;
}

/* Futuristic Light - Sci-fi inspired with bright accents on white */
[data-theme="futuristic-light"] body {
  font-family: "Rajdhani", "Exo 2", "Orbitron", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.05em;
  background: radial-gradient(ellipse at center, #f0f8ff 0%, #e6f2ff 100%);
  position: relative;
}

/* Add subtle grid background */
[data-theme="futuristic-light"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgb(0 150 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 150 255 / 3%) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="futuristic-light"] {
  --bg-primary: #f0f8ff;
  --bg-secondary: #fff;
  --bg-tertiary: #f5faff;
  --bg-hover: #e6f2ff;
  --bg-error: #fff0f0;
  --text-primary: #006;
  --text-secondary: #06c;
  --text-link: #0080ff;
  --text-error: #c00;
  --border-primary: #0080ff;
  --border-accent: #60c;
  --border-success: #0c0;
  --border-error: #c06;
  --shadow-sm: 0 0 8px rgb(0 128 255 / 15%), 0 0 4px rgb(0 128 255 / 10%);
  --shadow-md: 0 0 12px rgb(0 128 255 / 20%), 0 0 8px rgb(0 128 255 / 15%);
  --shadow-lg: 0 0 18px rgb(0 128 255 / 25%), 0 0 10px rgb(0 128 255 / 20%);
  --badge-bg: rgb(0 128 255 / 15%);
  --badge-text: #006;
  --gradient-start: #0080ff;
  --gradient-end: #60c;
  --accent-primary: #0080ff;
  --accent-success: #0c0;
  --accent-error: #c06;
  --card-bg: rgb(255 255 255 / 90%);
  --card-border: rgb(0 128 255 / 40%);
}

[data-theme="futuristic-light"] .header {
  border-bottom: 2px solid #0080ff;
  box-shadow:
    0 0 12px rgb(0 128 255 / 15%),
    0 4px 8px rgb(0 128 255 / 10%);
  position: relative;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 95%),
    rgb(240 248 255 / 90%)
  );
}

[data-theme="futuristic-light"] .header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #0080ff 20%,
    #60c 50%,
    #0080ff 80%,
    transparent
  );
  background-size: 200% 100%;
  animation: neon-slide-light 4s linear infinite;
  filter: blur(1px);
}

@keyframes neon-slide-light {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Subtle glow on header title */
[data-theme="futuristic-light"] .header-title {
  text-shadow:
    0 0 5px rgb(0 128 255 / 40%),
    0 0 10px rgb(0 128 255 / 30%),
    0 0 15px rgb(0 128 255 / 20%);
  animation: neon-pulse-light 2s ease-in-out infinite alternate;
  color: #006;
  font-weight: 700;
  letter-spacing: 0.1em;
}

@keyframes neon-pulse-light {
  from {
    text-shadow:
      0 0 5px rgb(0 128 255 / 40%),
      0 0 10px rgb(0 128 255 / 30%),
      0 0 15px rgb(0 128 255 / 20%);
  }
  to {
    text-shadow:
      0 0 8px rgb(0 128 255 / 50%),
      0 0 15px rgb(0 128 255 / 40%),
      0 0 22px rgb(0 128 255 / 30%);
  }
}

[data-theme="futuristic-light"] .feed-section {
  border: 1px solid #0080ff;
  box-shadow:
    0 0 12px rgb(0 128 255 / 12%),
    inset 0 0 15px rgb(0 128 255 / 3%);
  position: relative;
  background: rgb(255 255 255 / 70%);
  backdrop-filter: blur(10px);
}

/* Futuristic-light theme fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
  [data-theme="futuristic-light"] .feed-section {
    background: rgb(255 255 255 / 95%);
  }
}

[data-theme="futuristic-light"] .feed-section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgb(0 128 255 / 25%),
    rgb(102 0 204 / 25%),
    rgb(0 128 255 / 25%)
  );
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  opacity: 20%;
  filter: blur(8px);
  animation: gradient-shift-light 6s ease infinite;
}

@keyframes gradient-shift-light {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

[data-theme="futuristic-light"] .article-item {
  border-left: 3px solid #0080ff;
  background: linear-gradient(
    90deg,
    rgb(0 128 255 / 8%),
    rgb(0 128 255 / 2%),
    transparent
  );
  position: relative;
  transition: all 0.3s ease;
}

[data-theme="futuristic-light"] .article-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0080ff, #60c, #0080ff);
  background-size: 100% 200%;
  box-shadow: 0 0 8px rgb(0 128 255 / 40%);
  animation: border-flow-light 3s linear infinite;
}

@keyframes border-flow-light {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

[data-theme="futuristic-light"] .article-item:hover {
  box-shadow:
    0 0 15px rgb(0 128 255 / 20%),
    inset 0 0 10px rgb(0 128 255 / 5%);
  background: linear-gradient(
    90deg,
    rgb(0 128 255 / 12%),
    rgb(0 128 255 / 4%),
    transparent
  );
  border-left-width: 4px;
}

[data-theme="futuristic-light"] .article-item:hover::before {
  box-shadow:
    0 0 10px rgb(0 128 255 / 50%),
    0 0 15px rgb(102 0 204 / 25%);
}

[data-theme="futuristic-light"] h2 {
  text-shadow:
    0 0 5px rgb(0 128 255 / 45%),
    0 0 10px rgb(0 128 255 / 30%);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #006;
  font-weight: 700;
}

[data-theme="futuristic-light"] .article-title {
  color: var(--text-primary);
  text-shadow: 0 0 4px rgb(0 128 255 / 35%);
  font-weight: 600;
}

[data-theme="futuristic-light"] .article-title:hover {
  text-shadow:
    0 0 6px rgb(0 128 255 / 45%),
    0 0 10px rgb(0 128 255 / 30%);
}

[data-theme="futuristic-light"] .article-meta {
  color: var(--text-secondary);
  text-shadow: 0 0 3px rgb(0 128 255 / 25%);
}

[data-theme="futuristic-light"] a {
  color: var(--text-link);
  text-shadow: 0 0 4px rgb(0 128 255 / 35%);
  transition: all 0.3s ease;
}

[data-theme="futuristic-light"] a:hover {
  text-shadow:
    0 0 8px rgb(0 128 255 / 50%),
    0 0 12px rgb(102 0 204 / 30%);
  color: #0080ff;
}

/* Enhanced button styles */
[data-theme="futuristic-light"] button,
[data-theme="futuristic-light"] select {
  border: 1px solid #0080ff;
  background: rgb(255 255 255 / 90%);
  color: var(--text-primary);
  text-shadow: 0 0 4px rgb(0 128 255 / 35%);
  box-shadow: 0 0 5px rgb(0 128 255 / 15%);
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.05em;
}

[data-theme="futuristic-light"] button:hover,
[data-theme="futuristic-light"] select:hover {
  box-shadow:
    0 0 10px rgb(0 128 255 / 30%),
    inset 0 0 5px rgb(0 128 255 / 10%);
  border-color: #60c;
  background: rgb(240 248 255 / 95%);
}

/* Badge enhancements */
[data-theme="futuristic-light"] .badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid rgb(0 128 255 / 40%);
  box-shadow: 0 0 5px rgb(0 128 255 / 20%);
  text-shadow: 0 0 3px rgb(0 128 255 / 40%);
}

/* Compact Light - Dense information display with light background */
[data-theme="compact-light"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
  font-size: 0.875rem;
}

[data-theme="compact-light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #fff;
  --bg-tertiary: #f5f5f5;
  --bg-hover: #eee;
  --bg-error: #fff0f0;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-link: #1976d2;
  --text-error: #d32f2f;
  --border-primary: #e0e0e0;
  --border-accent: #1976d2;
  --border-success: #388e3c;
  --border-error: #d32f2f;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 8%);
  --shadow-md: 0 2px 4px rgb(0 0 0 / 12%);
  --shadow-lg: 0 3px 6px rgb(0 0 0 / 16%);
  --badge-bg: #1976d2;
  --badge-text: #fff;
  --gradient-start: #1976d2;
  --gradient-end: #2196f3;
  --accent-primary: #1976d2;
  --accent-success: #388e3c;
  --accent-error: #d32f2f;
  --card-bg: #fff;
  --card-border: #e0e0e0;
}

[data-theme="compact-light"] .header {
  padding: 0.75rem 1.5rem;
}

[data-theme="compact-light"] .header-title {
  font-size: 1.25rem;
}

[data-theme="compact-light"] .feed-section {
  padding: 1rem;
  margin-bottom: 1rem;
}

[data-theme="compact-light"] h2 {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

[data-theme="compact-light"] .article-item {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

[data-theme="compact-light"] .article-title {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

[data-theme="compact-light"] .article-meta {
  font-size: 0.75rem;
}

[data-theme="compact-light"] .feed-count {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

[data-theme="compact-light"] .sidebar {
  width: 220px;
}

[data-theme="compact-light"] .read-indicator {
  width: 1.5rem;
  height: 1.5rem;
}
