@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
  --font-serif-header: 'Space Grotesk', sans-serif;
  --font-serif-body: 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 8px;
  
  /* Modern Editorial — Apple clean + Google color */
  --bg-primary: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F5F5F5;
  --border-color: #E0E0E0;
  --text-primary: #1D1D1F;
  --text-secondary: #424245;
  --text-muted: #86868B;
  --accent-color: #1D1D1F;
  --accent-hover: #0066CC;
  --accent-light: rgba(0, 102, 204, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);

  /* Category colors — Google-inspired palette */
  --cat-ai: #4285F4;         /* Google Blue */
  --cat-marketing: #0F9D58;  /* Google Green */
  --cat-startups: #F4B400;   /* Google Yellow */
  --cat-creative: #DB4437;   /* Google Red */
  --cat-tech: #7B61FF;       /* Purple */
  --cat-money: #00897B;      /* Teal */
  --cat-global: #FF6D00;     /* Deep Orange */
}

/* Clean — Notion-inspired warm minimal */
[data-theme="clean"] {
  --bg-primary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FBFBFA;
  --border-color: #E3E3E0;
  --text-primary: #191919;
  --text-secondary: #37352F;
  --text-muted: #9B9A97;
  --accent-color: #191919;
  --accent-hover: #2EAADC;
  --accent-light: rgba(46, 170, 220, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Midnight — deep dark with blue accents */
[data-theme="midnight"] {
  --bg-primary: #0F0F13;
  --bg-card: #1A1A23;
  --bg-sidebar: #0F0F13;
  --border-color: #2A2A3A;
  --text-primary: #E8E8ED;
  --text-secondary: #B4B4C0;
  --text-muted: #6C6C80;
  --accent-color: #E8E8ED;
  --accent-hover: #818CF8;
  --accent-light: rgba(129, 140, 248, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Nord — cool arctic blue-grey */
[data-theme="nord"] {
  --bg-primary: #2E3440;
  --bg-card: #3B4252;
  --bg-sidebar: #2E3440;
  --border-color: #4C566A;
  --text-primary: #ECEFF4;
  --text-secondary: #D8DEE9;
  --text-muted: #7B88A1;
  --accent-color: #ECEFF4;
  --accent-hover: #88C0D0;
  --accent-light: rgba(136, 192, 208, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Dracula — vibrant dark with purple-pink */
[data-theme="dracula"] {
  --bg-primary: #282A36;
  --bg-card: #343746;
  --bg-sidebar: #282A36;
  --border-color: #44475A;
  --text-primary: #F8F8F2;
  --text-secondary: #CCC;
  --text-muted: #6272A4;
  --accent-color: #F8F8F2;
  --accent-hover: #BD93F9;
  --accent-light: rgba(189, 147, 249, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Rose — soft blush pink light theme */
[data-theme="rose"] {
  --bg-primary: #FFF5F5;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFF0F0;
  --border-color: #FECDD3;
  --text-primary: #1C1917;
  --text-secondary: #44403C;
  --text-muted: #A8A29E;
  --accent-color: #1C1917;
  --accent-hover: #E11D48;
  --accent-light: rgba(225, 29, 72, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Matcha — earthy green calm */
[data-theme="matcha"] {
  --bg-primary: #F6F7F2;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F0F2EA;
  --border-color: #D5DBCA;
  --text-primary: #1A1C16;
  --text-secondary: #3B3F32;
  --text-muted: #8C9078;
  --accent-color: #1A1C16;
  --accent-hover: #4D7C0F;
  --accent-light: rgba(77, 124, 15, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Sunset — warm dark orange-amber */
[data-theme="sunset"] {
  --bg-primary: #1A1410;
  --bg-card: #261E17;
  --bg-sidebar: #1A1410;
  --border-color: #3D3228;
  --text-primary: #F5E6D3;
  --text-secondary: #D4C4B0;
  --text-muted: #8C7A66;
  --accent-color: #F5E6D3;
  --accent-hover: #F59E0B;
  --accent-light: rgba(245, 158, 11, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Legacy dark fallback */
[data-theme="dark"] {
  --bg-primary: #0F0F13;
  --bg-card: #1A1A23;
  --bg-sidebar: #0F0F13;
  --border-color: #2A2A3A;
  --text-primary: #E8E8ED;
  --text-secondary: #B4B4C0;
  --text-muted: #6C6C80;
  --accent-color: #E8E8ED;
  --accent-hover: #818CF8;
  --accent-light: rgba(129, 140, 248, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.6);
}

[data-theme="sepia"] {
  --bg-primary: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F5F5F5;
  --border-color: #E0E0E0;
  --text-primary: #1D1D1F;
  --text-secondary: #424245;
  --text-muted: #86868B;
  --accent-color: #1D1D1F;
  --accent-hover: #0066CC;
  --accent-light: rgba(0, 102, 204, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: var(--transition-smooth);
  line-height: 1.5;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Newspaper Layout Container */
.newspaper-page {
  width: 100%;
  max-width: 1400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  position: relative;
}

/* Decorative Outer Lines (Vintage Newspaper Style) */
.newspaper-page::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid var(--border-color);
  pointer-events: none;
}

/* Header & Masthead */
.newspaper-header {
  display: flex;
  flex-direction: column;
  border-bottom: 4px double var(--text-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.masthead-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding-bottom: 1rem;
}

.masthead-left {
  display: flex;
  align-items: center;
}

.masthead-logo {
  text-align: center;
}

.logo-title {
  font-family: var(--font-serif-header);
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.logo-tagline {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.masthead-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Slang Toggle Switch */
.slang-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.slang-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--bg-primary);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Double Border Metadata Bar */
.meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding: 0.4rem 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Newspaper Category Tabs */
.newspaper-nav {
  margin-top: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.newspaper-nav .nav-menu {
  display: flex;
  justify-content: space-between;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newspaper-nav .nav-item {
  display: block;
  font-family: var(--font-serif-header);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.newspaper-nav .nav-item:hover,
.newspaper-nav .nav-item.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Category-colored nav tabs */
.nav-item[data-category="AI & Tools"]:hover,
.nav-item[data-category="AI & Tools"].active { color: var(--cat-ai); border-bottom-color: var(--cat-ai); }
.nav-item[data-category="Marketing & Growth"]:hover,
.nav-item[data-category="Marketing & Growth"].active { color: var(--cat-marketing); border-bottom-color: var(--cat-marketing); }
.nav-item[data-category="Startups & VC"]:hover,
.nav-item[data-category="Startups & VC"].active { color: var(--cat-startups); border-bottom-color: var(--cat-startups); }
.nav-item[data-category="Design & Creative"]:hover,
.nav-item[data-category="Design & Creative"].active { color: var(--cat-creative); border-bottom-color: var(--cat-creative); }
.nav-item[data-category="Tech Industry"]:hover,
.nav-item[data-category="Tech Industry"].active { color: var(--cat-tech); border-bottom-color: var(--cat-tech); }
.nav-item[data-category="Money & Markets"]:hover,
.nav-item[data-category="Money & Markets"].active { color: var(--cat-money); border-bottom-color: var(--cat-money); }
.nav-item[data-category="Global Pulse"]:hover,
.nav-item[data-category="Global Pulse"].active { color: var(--cat-global); border-bottom-color: var(--cat-global); }

/* Action & Search Bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  gap: 1.5rem;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.action-btn i {
  width: 13px;
  height: 13px;
}

.action-btn:hover,
.action-btn.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--accent-light);
}

/* Status dot styles */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981; /* Green */
  display: inline-block;
}

.status-dot.loading {
  background-color: #f59e0b; /* Yellow */
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Main Newspaper Columns */
.newspaper-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-top: 1rem;
}

/* News Feed Container */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Custom Interests Manager inside feed */
.custom-interests-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 1rem;
}

.bar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.interest-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent-light);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
}

.tag-label {
  cursor: pointer;
}

.remove-interest-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.remove-interest-btn:hover {
  color: var(--accent-color);
}

.add-interest-form {
  display: flex;
  gap: 0.25rem;
}

.add-interest-form input {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  border-radius: var(--border-radius-sm);
  outline: none;
  width: 130px;
  color: var(--text-primary);
}

.add-interest-form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  padding: 0 0.4rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}

/* News Article Print Grid */
.feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Apple Newsroom Front Page ── */
.feed-grid.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Hero — full-bleed colored block */
.bento-hero {
  display: flex !important;
  flex-direction: column !important;
  padding: 3rem 2.5rem 2.5rem !important;
  border-radius: 20px !important;
  min-height: 320px;
  background: var(--cat-ai) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.bento-hero[data-cat-source="ai"] { background: var(--cat-ai) !important; }
.bento-hero[data-cat-source="marketing"] { background: var(--cat-marketing) !important; }
.bento-hero[data-cat-source="startups"] { background: #E8A800 !important; }
.bento-hero[data-cat-source="creative"] { background: var(--cat-creative) !important; }
.bento-hero[data-cat-source="tech"] { background: var(--cat-tech) !important; }
.bento-hero[data-cat-source="money"] { background: var(--cat-money) !important; }
.bento-hero[data-cat-source="global"] { background: var(--cat-global) !important; }

.bento-hero .verge-accent { display: none; }
.bento-hero .verge-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bento-hero .article-category {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  border-radius: 20px;
}

.bento-hero .breaking-badge {
  background: #fff !important;
  color: #c41e1e !important;
}

.bento-hero .article-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0 0.75rem;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 650px;
}

.bento-hero .article-excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  max-width: 600px;
}

.bento-hero-body { flex: 1; }

.bento-bullets {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bento-bullets li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.45;
  padding-left: 1.2rem;
  position: relative;
}

.bento-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}

.bento-hero .article-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.75rem;
  margin-top: auto;
}

.bento-hero .article-source,
.bento-hero .article-date {
  color: rgba(255,255,255,0.7) !important;
}

.bento-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(232, 168, 0, 0.4), 0 0 80px rgba(232, 168, 0, 0.15) !important;
}

.bento-hero[data-cat-source="ai"]:hover { box-shadow: 0 8px 40px rgba(66, 133, 244, 0.4), 0 0 80px rgba(66, 133, 244, 0.15) !important; }
.bento-hero[data-cat-source="marketing"]:hover { box-shadow: 0 8px 40px rgba(15, 157, 88, 0.4), 0 0 80px rgba(15, 157, 88, 0.15) !important; }
.bento-hero[data-cat-source="startups"]:hover { box-shadow: 0 8px 40px rgba(232, 168, 0, 0.4), 0 0 80px rgba(232, 168, 0, 0.15) !important; }
.bento-hero[data-cat-source="creative"]:hover { box-shadow: 0 8px 40px rgba(219, 68, 55, 0.4), 0 0 80px rgba(219, 68, 55, 0.15) !important; }
.bento-hero[data-cat-source="tech"]:hover { box-shadow: 0 8px 40px rgba(123, 97, 255, 0.4), 0 0 80px rgba(123, 97, 255, 0.15) !important; }
.bento-hero[data-cat-source="money"]:hover { box-shadow: 0 8px 40px rgba(0, 137, 123, 0.4), 0 0 80px rgba(0, 137, 123, 0.15) !important; }
.bento-hero[data-cat-source="global"]:hover { box-shadow: 0 8px 40px rgba(255, 109, 0, 0.4), 0 0 80px rgba(255, 109, 0, 0.15) !important; }

/* Mid cards — category-tinted backgrounds */
.bento-mid {
  display: flex;
  flex-direction: column;
  padding: 1.75rem !important;
  border-radius: 16px !important;
  background: var(--bg-card) !important;
  box-shadow: none !important;
  border: 0.5px solid var(--text-primary) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-mid[data-cat-source="ai"] { background: linear-gradient(135deg, var(--bg-card) 0%, #EEF3FF 100%) !important; }
.bento-mid[data-cat-source="marketing"] { background: linear-gradient(135deg, var(--bg-card) 0%, #E8F5E9 100%) !important; }
.bento-mid[data-cat-source="startups"] { background: linear-gradient(135deg, var(--bg-card) 0%, #FFF8E1 100%) !important; }
.bento-mid[data-cat-source="creative"] { background: linear-gradient(135deg, var(--bg-card) 0%, #FFEBEE 100%) !important; }
.bento-mid[data-cat-source="tech"] { background: linear-gradient(135deg, var(--bg-card) 0%, #F3E8FF 100%) !important; }
.bento-mid[data-cat-source="money"] { background: linear-gradient(135deg, var(--bg-card) 0%, #E0F2F1 100%) !important; }
.bento-mid[data-cat-source="global"] { background: linear-gradient(135deg, var(--bg-card) 0%, #FFF3E0 100%) !important; }

.bento-mid:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

.bento-mid .article-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.6rem 0;
  letter-spacing: -0.01em;
}

.bento-mid .article-excerpt {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Small cards — category-tinted */
.bento-small {
  display: flex;
  flex-direction: column;
  padding: 1.5rem !important;
  border-radius: 16px !important;
  background: var(--bg-card) !important;
  box-shadow: none !important;
  border: 0.5px solid var(--text-primary) !important;
  position: relative;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-small::before { display: none; }

.bento-small[data-cat-source="ai"] { background: linear-gradient(135deg, var(--bg-card) 0%, #EEF3FF 100%) !important; }
.bento-small[data-cat-source="marketing"] { background: linear-gradient(135deg, var(--bg-card) 0%, #E8F5E9 100%) !important; }
.bento-small[data-cat-source="startups"] { background: linear-gradient(135deg, var(--bg-card) 0%, #FFF8E1 100%) !important; }
.bento-small[data-cat-source="creative"] { background: linear-gradient(135deg, var(--bg-card) 0%, #FFEBEE 100%) !important; }
.bento-small[data-cat-source="tech"] { background: linear-gradient(135deg, var(--bg-card) 0%, #F3E8FF 100%) !important; }
.bento-small[data-cat-source="money"] { background: linear-gradient(135deg, var(--bg-card) 0%, #E0F2F1 100%) !important; }
.bento-small[data-cat-source="global"] { background: linear-gradient(135deg, var(--bg-card) 0%, #FFF3E0 100%) !important; }

.bento-small:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

.bento-small .article-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Row wrappers */
.verge-mid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.verge-small-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* Newspaper Article Card */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 0.5px solid var(--text-primary);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Cards are self-contained — consistent padding */

/* Legacy lead-story (unused — replaced by bento grid) */

.lead-left {
  display: flex;
  flex-direction: column;
}

.lead-right {
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.article-source {
  color: var(--accent-color);
  font-weight: 800;
}

/* Source colors match category */
.article-card[data-cat-source="ai"] .article-source { color: var(--cat-ai); }
.article-card[data-cat-source="marketing"] .article-source { color: var(--cat-marketing); }
.article-card[data-cat-source="startups"] .article-source { color: var(--cat-startups); }
.article-card[data-cat-source="creative"] .article-source { color: var(--cat-creative); }
.article-card[data-cat-source="tech"] .article-source { color: var(--cat-tech); }
.article-card[data-cat-source="money"] .article-source { color: var(--cat-money); }
.article-card[data-cat-source="global"] .article-source { color: var(--cat-global); }

.article-title {
  font-family: var(--font-serif-header);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.article-card.lead-story .article-title {
  font-size: 2.1rem;
  letter-spacing: -0.5px;
}

.article-excerpt {
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* First article has a drop cap in GenZ Mode/Lead story */
.article-card.lead-story .article-excerpt::first-letter {
  font-family: var(--font-serif-header);
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--accent-color);
  font-weight: 900;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.article-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  color: #fff;
  border: none;
  letter-spacing: 0.3px;
  background: var(--text-muted);
}

/* Category-specific colors */
.article-category[data-cat="ai"] { background: var(--cat-ai); }
.article-category[data-cat="marketing"] { background: var(--cat-marketing); }
.article-category[data-cat="startups"] { background: var(--cat-startups); color: #1D1D1F; }
.article-category[data-cat="creative"] { background: var(--cat-creative); }
.article-category[data-cat="tech"] { background: var(--cat-tech); }
.article-category[data-cat="money"] { background: var(--cat-money); }
.article-category[data-cat="global"] { background: var(--cat-global); }

/* Bookmark tag markers on card */
.article-card.bookmarked::after {
  content: "★";
  position: absolute;
  top: 0;
  right: 0;
  color: #d97706; /* gold */
  font-size: 1rem;
}

.article-card.unread .article-title {
  font-weight: 900;
}

.article-card.unread::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.article-card.lead-story.unread::before {
  left: -8px;
}

/* Sidebar Columns */
.newspaper-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: none;
  padding-left: 0;
}

.sidebar-widget {
  padding: 1.25rem;
  border-bottom: none;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget:last-child {
  border-bottom: none;
}

.widget-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: none;
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Countdown Clock */
.sync-widget {
  text-align: center;
}

.sync-info {
  margin: 0.75rem 0;
}

.sync-countdown {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cat-ai);
}

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

.btn-newspaper-sm {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-newspaper-sm:hover {
  background: var(--accent-hover);
  color: #fff;
  border-color: var(--accent-hover);
}

.btn-block {
  width: 100%;
}

/* Quote Widget */
.quote-container {
  position: relative;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
}

.quote-quote-mark {
  font-family: var(--font-serif-header);
  font-size: 4rem;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
  opacity: 0.12;
  color: var(--text-primary);
}

.quote-text {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.quote-author {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.quote-original {
  font-family: var(--font-serif-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Bulletin Widget */
.bulletin-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bulletin-list li {
  font-family: var(--font-serif-body);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 0.5rem;
}

.bulletin-list li::before {
  content: "■ ";
  color: var(--accent-color);
  font-size: 0.65rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Footer styling */
.newspaper-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Detail Reader Drawer Overlay */
.reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 23, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.reader-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.reader-container {
  width: 600px;
  max-width: 95%;
  background: var(--bg-card);
  height: 100vh;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 2rem;
  position: relative;
}

.reader-overlay.active .reader-container {
  transform: translateX(0);
}

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

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

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.icon-btn span {
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.25rem;
  text-transform: uppercase;
}

#reader-close-btn {
  width: auto;
  padding: 0 0.75rem;
}

.icon-btn:hover,
.icon-btn.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--accent-light);
}

.font-sizer {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.15rem;
}

.font-btn {
  background: transparent;
  border: none;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.font-btn:hover {
  color: var(--accent-color);
}

.reader-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reader-title {
  font-family: var(--font-serif-header);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.reader-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.75rem;
}

/* Audio Player */
.audio-player-widget {
  background: var(--accent-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.waveform-viz {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 15px;
}

.wave-bar {
  width: 2px;
  height: 4px;
  background-color: var(--text-muted);
}

.audio-player-widget.playing .wave-bar {
  background-color: var(--accent-color);
  animation: wave-bounce 0.8s ease-in-out infinite alternate;
}

.audio-player-widget.playing .wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.audio-player-widget.playing .wave-bar:nth-child(3n) { animation-delay: 0.2s; }

@keyframes wave-bounce {
  0% { height: 4px; }
  100% { height: 15px; }
}

/* Bullet takeaways block */
.nonsense-summary-box {
  background: var(--bg-primary);
  border: 1px solid var(--accent-color);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.25rem;
}

.summary-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.summary-box-title {
  font-family: var(--font-serif-header);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

#reader-article-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#reader-article-bullets li {
  font-family: var(--font-serif-body);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

#reader-article-bullets li::before {
  content: "✦ ";
  color: var(--accent-color);
}

.reader-body-text {
  font-family: var(--font-serif-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.reader-body-text p {
  margin-bottom: 1rem;
}

/* Gemini panel */
.gemini-assistant-panel {
  border-top: 1px dashed var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gemini-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gemini-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gemini-chat-history {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  max-height: 150px;
  overflow-y: auto;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.chat-bubble {
  padding: 0.4rem 0.6rem;
  border-radius: var(--border-radius-sm);
  line-height: 1.4;
}

.chat-bubble.user {
  background: var(--accent-light);
  color: var(--accent-color);
  align-self: flex-end;
  max-width: 85%;
}

.chat-bubble.ai {
  background: var(--bg-card);
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid var(--border-color);
  max-width: 85%;
}

.gemini-input-group {
  display: flex;
  gap: 0.4rem;
}

.gemini-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}

.gemini-send-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gemini-locked-message {
  border: 1px dashed var(--border-color);
  padding: 0.8rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
}

.gemini-locked-message button {
  background: none;
  border: none;
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 23, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

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

.modal-header h3 {
  font-family: var(--font-serif-header);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent-color);
}

.form-group span.help-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-footer {
  padding: 0.8rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
}

/* Breaking News Badge */
.breaking-badge {
  display: inline-block;
  background: #c41e1e;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  animation: breakingPulse 2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes breakingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Responsive columns */
@media (max-width: 1024px) {
  .newspaper-body {
    grid-template-columns: 1fr;
  }
  .newspaper-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
  .feed-grid > .article-card:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .article-card.lead-story {
    grid-template-columns: 1fr;
  }
  .lead-right {
    border-left: none;
    padding-left: 0;
    padding-top: 1rem;
  }
  .logo-title {
    font-size: 2.5rem;
  }
  .masthead-top {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .masthead-left, .masthead-right {
    justify-content: center;
  }
}

/* Typography Font Customizations */
body[data-font="sans"] {
  --font-serif-header: var(--font-display);
  --font-serif-body: var(--font-sans);
}

body[data-font="sans"] .article-card.lead-story .article-excerpt::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding-right: 0;
  padding-top: 0;
  color: inherit;
  font-weight: inherit;
  font-family: inherit;
}

/* Dark themes: bento card gradient overrides */
[data-theme="dark"] .bento-mid[data-cat-source],
[data-theme="midnight"] .bento-mid[data-cat-source],
[data-theme="nord"] .bento-mid[data-cat-source],
[data-theme="dracula"] .bento-mid[data-cat-source],
[data-theme="sunset"] .bento-mid[data-cat-source] { background: var(--bg-card) !important; }

[data-theme="dark"] .bento-small[data-cat-source],
[data-theme="midnight"] .bento-small[data-cat-source],
[data-theme="nord"] .bento-small[data-cat-source],
[data-theme="dracula"] .bento-small[data-cat-source],
[data-theme="sunset"] .bento-small[data-cat-source] { background: var(--bg-card) !important; }

[data-theme="dark"] .bento-mid[data-cat-source="ai"],
[data-theme="midnight"] .bento-mid[data-cat-source="ai"],
[data-theme="nord"] .bento-mid[data-cat-source="ai"],
[data-theme="dracula"] .bento-mid[data-cat-source="ai"],
[data-theme="sunset"] .bento-mid[data-cat-source="ai"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(66, 133, 244, 0.15) 100%) !important; }
[data-theme="dark"] .bento-mid[data-cat-source="marketing"],
[data-theme="midnight"] .bento-mid[data-cat-source="marketing"],
[data-theme="nord"] .bento-mid[data-cat-source="marketing"],
[data-theme="dracula"] .bento-mid[data-cat-source="marketing"],
[data-theme="sunset"] .bento-mid[data-cat-source="marketing"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 157, 88, 0.15) 100%) !important; }
[data-theme="dark"] .bento-mid[data-cat-source="startups"],
[data-theme="midnight"] .bento-mid[data-cat-source="startups"],
[data-theme="nord"] .bento-mid[data-cat-source="startups"],
[data-theme="dracula"] .bento-mid[data-cat-source="startups"],
[data-theme="sunset"] .bento-mid[data-cat-source="startups"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232, 168, 0, 0.15) 100%) !important; }
[data-theme="dark"] .bento-mid[data-cat-source="creative"],
[data-theme="midnight"] .bento-mid[data-cat-source="creative"],
[data-theme="nord"] .bento-mid[data-cat-source="creative"],
[data-theme="dracula"] .bento-mid[data-cat-source="creative"],
[data-theme="sunset"] .bento-mid[data-cat-source="creative"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(219, 68, 55, 0.15) 100%) !important; }
[data-theme="dark"] .bento-mid[data-cat-source="tech"],
[data-theme="midnight"] .bento-mid[data-cat-source="tech"],
[data-theme="nord"] .bento-mid[data-cat-source="tech"],
[data-theme="dracula"] .bento-mid[data-cat-source="tech"],
[data-theme="sunset"] .bento-mid[data-cat-source="tech"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(123, 97, 255, 0.15) 100%) !important; }
[data-theme="dark"] .bento-mid[data-cat-source="money"],
[data-theme="midnight"] .bento-mid[data-cat-source="money"],
[data-theme="nord"] .bento-mid[data-cat-source="money"],
[data-theme="dracula"] .bento-mid[data-cat-source="money"],
[data-theme="sunset"] .bento-mid[data-cat-source="money"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 137, 123, 0.15) 100%) !important; }
[data-theme="dark"] .bento-mid[data-cat-source="global"],
[data-theme="midnight"] .bento-mid[data-cat-source="global"],
[data-theme="nord"] .bento-mid[data-cat-source="global"],
[data-theme="dracula"] .bento-mid[data-cat-source="global"],
[data-theme="sunset"] .bento-mid[data-cat-source="global"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 109, 0, 0.15) 100%) !important; }

[data-theme="dark"] .bento-small[data-cat-source="ai"],
[data-theme="midnight"] .bento-small[data-cat-source="ai"],
[data-theme="nord"] .bento-small[data-cat-source="ai"],
[data-theme="dracula"] .bento-small[data-cat-source="ai"],
[data-theme="sunset"] .bento-small[data-cat-source="ai"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(66, 133, 244, 0.15) 100%) !important; }
[data-theme="dark"] .bento-small[data-cat-source="marketing"],
[data-theme="midnight"] .bento-small[data-cat-source="marketing"],
[data-theme="nord"] .bento-small[data-cat-source="marketing"],
[data-theme="dracula"] .bento-small[data-cat-source="marketing"],
[data-theme="sunset"] .bento-small[data-cat-source="marketing"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 157, 88, 0.15) 100%) !important; }
[data-theme="dark"] .bento-small[data-cat-source="startups"],
[data-theme="midnight"] .bento-small[data-cat-source="startups"],
[data-theme="nord"] .bento-small[data-cat-source="startups"],
[data-theme="dracula"] .bento-small[data-cat-source="startups"],
[data-theme="sunset"] .bento-small[data-cat-source="startups"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232, 168, 0, 0.15) 100%) !important; }
[data-theme="dark"] .bento-small[data-cat-source="creative"],
[data-theme="midnight"] .bento-small[data-cat-source="creative"],
[data-theme="nord"] .bento-small[data-cat-source="creative"],
[data-theme="dracula"] .bento-small[data-cat-source="creative"],
[data-theme="sunset"] .bento-small[data-cat-source="creative"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(219, 68, 55, 0.15) 100%) !important; }
[data-theme="dark"] .bento-small[data-cat-source="tech"],
[data-theme="midnight"] .bento-small[data-cat-source="tech"],
[data-theme="nord"] .bento-small[data-cat-source="tech"],
[data-theme="dracula"] .bento-small[data-cat-source="tech"],
[data-theme="sunset"] .bento-small[data-cat-source="tech"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(123, 97, 255, 0.15) 100%) !important; }
[data-theme="dark"] .bento-small[data-cat-source="money"],
[data-theme="midnight"] .bento-small[data-cat-source="money"],
[data-theme="nord"] .bento-small[data-cat-source="money"],
[data-theme="dracula"] .bento-small[data-cat-source="money"],
[data-theme="sunset"] .bento-small[data-cat-source="money"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 137, 123, 0.15) 100%) !important; }
[data-theme="dark"] .bento-small[data-cat-source="global"],
[data-theme="midnight"] .bento-small[data-cat-source="global"],
[data-theme="nord"] .bento-small[data-cat-source="global"],
[data-theme="dracula"] .bento-small[data-cat-source="global"],
[data-theme="sunset"] .bento-small[data-cat-source="global"] { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 109, 0, 0.15) 100%) !important; }

[data-theme="dark"] .bento-mid,
[data-theme="dark"] .bento-small,
[data-theme="midnight"] .bento-mid,
[data-theme="midnight"] .bento-small,
[data-theme="nord"] .bento-mid,
[data-theme="nord"] .bento-small,
[data-theme="dracula"] .bento-mid,
[data-theme="dracula"] .bento-small,
[data-theme="sunset"] .bento-mid,
[data-theme="sunset"] .bento-small { border: 0.5px solid rgba(255, 255, 255, 0.3) !important; }

[data-theme="dark"] .bento-hero,
[data-theme="midnight"] .bento-hero,
[data-theme="nord"] .bento-hero,
[data-theme="dracula"] .bento-hero,
[data-theme="sunset"] .bento-hero { border: 0.5px solid rgba(255, 255, 255, 0.2) !important; }

[data-theme="dark"] .article-card,
[data-theme="midnight"] .article-card,
[data-theme="nord"] .article-card,
[data-theme="dracula"] .article-card,
[data-theme="sunset"] .article-card { border: 0.5px solid rgba(255, 255, 255, 0.3); }
