/* Define category colors as CSS variables */
:root {
  --cat-politics: #dc2626;
  --cat-greece: #2563eb;
  --cat-sports: #16a34a;
  --cat-world: #7c3aed;
  --cat-lifestyle: #ec4899;
  --cat-business: #f59e0b;
  --cat-tech: #0891b2;
  --cat-education: #9333ea;
  --cat-weather: #06b6d4;
  --primary: #5469ff;
  --primary-hover: #3d4ff7;
}

/* Base styles - Mobile-first typography */
html {
  font-size: 16px; /* Base font size for accessibility */
  -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjustment */
  text-size-adjust: 100%;
}

body {
  font-family: 'Fira Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem; /* 16px base */
  line-height: 1.6; /* Comfortable line height for readability */
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure minimum font sizes for readability */
p, li, span, div {
  font-size: 1rem; /* 16px minimum */
  line-height: 1.6;
}

/* Responsive typography scaling */
@media (min-width: 640px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 16px; /* Maintain 16px for accessibility */
  }
}

/* Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #5469ff 0%, #7b85ff 100%);
  z-index: 1000;
  transition: width 0.3s;
}

/* Header Styles */
.glass-header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.dark .glass-header {
  background: rgba(31, 41, 55, 0.92);
  border-bottom-color: rgba(75, 85, 99, 0.6);
}

/* Logo */
.logo-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #5469ff 0%, #3d4ff7 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(84, 105, 255, 0.2);
  transition: all 0.3s;
}

.logo-wrapper:hover {
  box-shadow: 0 10px 15px -3px rgba(84, 105, 255, 0.3);
  transform: translateY(-1px);
}

.logo-wrapper i {
  color: white;
  font-size: 1.25rem;
}

/* BETA Badge */
.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
  height: fit-content;
  align-self: flex-start;
}

/* Header Clocks */
.header-clock-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.header-clock-canvas {
  width: 36px;
  height: 36px;
}

.header-clock-label {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .header-clock-label {
  color: #9ca3af;
}

/* Action Buttons - Simple Modern Design */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-height: 44px; /* Touch-friendly target */
  min-width: 44px;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: white;
  font-size: 1rem; /* 16px for readability */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Focus states for accessibility */
.action-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.action-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.action-btn i {
  font-size: 1rem;
  flex-shrink: 0;
}

.action-btn-text {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Button Color Variants - Simple Colors */
.weather-widget {
  background: #3b82f6;
}

.weather-widget:hover {
  background: #2563eb;
}

.traffic-widget {
  background: #ef4444;
}

.traffic-widget:hover {
  background: #dc2626;
}

.refresh-widget {
  background: #10b981;
}

.refresh-widget:hover {
  background: #059669;
}

.submit-feed-widget {
  background: #f97316;
}

.submit-feed-widget:hover {
  background: #ea580c;
}

/* Sticky Controls */
.sticky-controls {
  position: sticky;
  top: 4rem;
  z-index: 20;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .sticky-controls {
  background: #1f2937;
}

/* Navigation - Modern Flat Design */
.nav-container {
  background: white;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .nav-container {
  background: #1f2937;
  border-bottom-color: #374151;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

/* Category Buttons - Modern Flat Design - Touch-friendly */
.category-btn {
  padding: 0.75rem 1rem;
  min-height: 44px; /* Touch-friendly target */
  min-width: 44px;
  border-radius: 0;
  border: none;
  background: #f3f4f6;
  color: #374151; /* Improved contrast */
  font-size: 1rem; /* 16px for readability */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.5;
}

/* Focus states for accessibility */
.category-btn:focus-visible {
  outline: 2px solid #5469ff;
  outline-offset: 2px;
  background: #e5e7eb;
}

.dark .category-btn {
  background: #374151;
  color: #9ca3af;
}

.category-btn i {
  font-size: 1rem;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background: #e5e7eb;
  color: #4b5563;
}

.dark .category-btn:hover {
  background: #4b5563;
  color: #d1d5db;
}

/* Active Category Styles - Flat Design */
.category-btn.active {
  color: white;
  font-weight: 600;
}

.category-btn[data-category="Πολιτική"].active {
  background: var(--cat-politics);
}

.category-btn[data-category="Ελλάδα"].active {
  background: var(--cat-greece);
}

.category-btn[data-category="Αθλητικά"].active {
  background: var(--cat-sports);
}

.category-btn[data-category="Κόσμος"].active {
  background: var(--cat-world);
}

.category-btn[data-category="Lifestyle"].active {
  background: var(--cat-lifestyle);
}

.category-btn[data-category="Business"].active {
  background: var(--cat-business);
}

.category-btn[data-category="Τεχνολογία"].active {
  background: var(--cat-tech);
}

.category-btn[data-category="Education"].active {
  background: var(--cat-education);
}

/* Category Count Badge - Flat Design */
.category-count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0;
  margin-left: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
  min-width: 1.25rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.dark .category-btn:not(.active) .category-count {
  background: rgba(0, 0, 0, 0.2);
}

/* Search - Flat Design */
.search-wrapper {
  padding: 1rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.dark .search-wrapper {
  background: #1f2937;
  border-bottom-color: #374151;
}

.search-container {
  position: relative;
  max-width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem;
  min-height: 44px; /* Touch-friendly target */
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 1rem; /* 16px for readability and to prevent iOS zoom */
  font-weight: 400;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.search-input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.search-input::placeholder {
  color: #6b7280;
}

.search-input:focus {
  background: white;
  border-color: var(--primary);
  outline: none;
}

.dark .search-input {
  background: #374151;
  color: #e5e7eb;
  border-color: #4b5563;
}

.dark .search-input::placeholder {
  color: #9ca3af;
}

.dark .search-input:focus {
  background: #4b5563;
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.875rem;
  pointer-events: none;
}

.search-input:focus + .search-icon {
  color: var(--primary);
}

.dark .search-icon {
  color: #6b7280;
}

/* Content Layout */
.content-with-sidebar {
  display: flex;
  gap: 0;
}

.main-content-area {
  flex: 1;
  min-width: 0;
}

/* Right Sidebar - Clean Minimal Design */
.right-sidebar {
  width: 320px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 5rem);
  position: sticky;
  top: 5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.right-sidebar::-webkit-scrollbar {
  width: 6px;
}

.right-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.right-sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

.right-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.dark .right-sidebar {
  background: #1f2937;
  border-color: #374151;
}

/* News Flow Card - Clean Minimal Design */
.news-flow-card {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.news-flow-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dark .news-flow-card {
  background: #1f2937;
  border-color: #374151;
}

.news-flow-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .news-flow-header {
  border-bottom-color: #374151;
}

.news-flow-header i {
  font-size: 0.875rem;
  color: #5469ff;
  background: #f0f4ff;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.dark .news-flow-header i {
  background: rgba(84, 105, 255, 0.1);
  color: #a5b9ff;
}

.news-flow-header h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.dark .news-flow-header h3 {
  color: #f3f4f6;
}

/* Flow Metrics - COMPACT VERSION */
.flow-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.flow-metrics > *:last-child {
  margin-bottom: 0;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-row:hover {
  padding-left: 0.25rem;
}

.dark .metric-row {
  border-bottom-color: #374151;
}

.metric-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.metric-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.metric-live .metric-icon {
  background: #fee2e2;
  color: #dc2626;
}

.metric-rate .metric-icon {
  background: #dbeafe;
  color: #2563eb;
}

.metric-sources .metric-icon {
  background: #d1fae5;
  color: #059669;
}

.metric-fresh .metric-icon {
  background: #fef3c7;
  color: #d97706;
}

.dark .metric-icon {
  opacity: 0.9;
}

.metric-label {
  font-size: 0.6875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.dark .metric-label {
  color: #9ca3af;
}

.metric-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1f2937;
  text-align: right;
  animation: dataUpdate 0.3s ease-out;
}

.dark .metric-value {
  color: #f3f4f6;
}

/* Live Indicator */
.live-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.25rem;
  position: relative;
}

.live-dot::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

/* Cache Status - Clean Minimal */
#cache-status-indicator {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dark #cache-status-indicator {
  background: #111827;
  border-color: #374151;
}

#cache-status-text {
  color: #4b5563;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dark #cache-status-text {
  color: #d1d5db;
}

.cache-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.dark .cache-bar {
  background: #374151;
}

.cache-bar-fill,
#cache-freshness-bar {
  height: 100%;
  background: #10b981;
  transition: width 0.3s, background-color 0.3s;
}

/* Base Sidebar Widget Styles - Clean Minimal */
.sidebar-widget {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.sidebar-widget:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dark .sidebar-widget {
  background: #1f2937;
  border-color: #374151;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .widget-header {
  border-bottom-color: #374151;
}

.widget-header i {
  font-size: 1rem;
  color: #5469ff;
  background: #f0f4ff;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.dark .widget-header i {
  background: rgba(84, 105, 255, 0.1);
  color: #a5b9ff;
}

.widget-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.dark .widget-header h3 {
  color: #f3f4f6;
}

/* Reading Assistant Widget */
.reading-assistant-widget .reading-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.reading-metric-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem;
  text-align: center;
}

.dark .reading-metric-item {
  background: #111827;
  border-color: #374151;
}

.reading-metric-item .metric-label {
  font-size: 0.625rem;
  color: #6b7280;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.dark .reading-metric-item .metric-label {
  color: #9ca3af;
}

.reading-metric-item .metric-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
}

.dark .reading-metric-item .metric-value {
  color: #f3f4f6;
}

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

.reading-action-btn {
  flex: 1;
  padding: 0.5rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.dark .reading-action-btn {
  background: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

.reading-action-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.dark .reading-action-btn:hover {
  background: #4b5563;
}

/* Smart Reminders - Clean Minimal */
.reminder-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

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

.reminder-item.high {
  border-left: 3px solid #ef4444;
  background: #fef2f2;
}

.reminder-item.medium {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.reminder-item.low {
  border-left: 3px solid #6b7280;
}

.dark .reminder-item {
  background: #111827;
  border-color: #374151;
}

.dark .reminder-item.high {
  background: rgba(239, 68, 68, 0.1);
}

.dark .reminder-item.medium {
  background: rgba(245, 158, 11, 0.1);
}

.reminder-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.dark .reminder-item:hover {
  background: #1a202c;
}

.reminder-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.reminder-icon.info { 
  background: #dbeafe; 
  color: #2563eb; 
}

.reminder-icon.warning { 
  background: #fef3c7; 
  color: #d97706; 
}

.reminder-icon.success { 
  background: #d1fae5; 
  color: #059669; 
}

.dark .reminder-icon.info { 
  background: rgba(37, 99, 235, 0.2); 
  color: #60a5fa;
}

.dark .reminder-icon.warning { 
  background: rgba(217, 119, 6, 0.2); 
  color: #fbbf24;
}

.dark .reminder-icon.success { 
  background: rgba(5, 150, 105, 0.2); 
  color: #34d399;
}

.reminder-content {
  flex: 1;
  color: #4b5563;
  line-height: 1.3;
}

.dark .reminder-content {
  color: #d1d5db;
}

/* News Velocity Tracker */
.velocity-stories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.velocity-section {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #fafafa;
  margin-bottom: 0.75rem;
}

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

.dark .velocity-section {
  background: #111827;
  border-color: #374151;
}

.velocity-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.dark .velocity-section-title {
  color: #9ca3af;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.velocity-story-item {
  font-size: 0.6875rem;
  color: #6b7280;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

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

.velocity-story-item:hover {
  padding-left: 0.25rem;
}

.dark .velocity-story-item {
  color: #d1d5db;
  border-bottom-color: #374151;
}

.story-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-velocity {
  font-size: 0.625rem;
  font-weight: 600;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.velocity-up { color: #10b981; }
.velocity-down { color: #ef4444; }

/* Exclusive Content Finder - Clean Minimal */
.exclusive-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f0f4ff;
  border: 1px solid #c7d6ff;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.dark .exclusive-count {
  background: rgba(84, 105, 255, 0.1);
  border-color: rgba(84, 105, 255, 0.3);
}

.count-label {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
}

.dark .count-label {
  color: #d1d5db;
}

.count-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #5469ff;
}

.dark .count-value {
  color: #a5b9ff;
}

.exclusive-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.exclusive-story-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.exclusive-story-item:last-child {
  margin-bottom: 0;
}

.exclusive-story-item:hover {
  background: #f3f4f6;
  border-color: #5469ff;
  transform: translateX(2px);
}

.dark .exclusive-story-item {
  background: #111827;
  border-color: #374151;
}

.dark .exclusive-story-item:hover {
  background: #1a202c;
}

.exclusive-story-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exclusive-story-source {
  font-size: 0.625rem;
  color: #5469ff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dark .exclusive-story-source {
  color: #a5b9ff;
}

.exclusive-story-title {
  font-size: 0.6875rem;
  color: #4b5563;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .exclusive-story-title {
  color: #d1d5db;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .mobile-menu-btn {
  background: #374151;
  border-color: #4b5563;
}

.mobile-menu-btn:hover {
  background: #f9fafb;
  transform: scale(1.05);
}

.dark .mobile-menu-btn:hover {
  background: #4b5563;
}

.mobile-menu-btn i {
  font-size: 1.25rem;
  color: #4b5563;
}

.dark .mobile-menu-btn i {
  color: #d1d5db;
}

/* Mobile Category Overlay */
.mobile-category-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-category-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-category-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 41;
  max-height: 70vh;
  overflow-y: auto;
}

.dark .mobile-category-menu {
  background: #1f2937;
}

.mobile-category-overlay.active .mobile-category-menu {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.dark .mobile-menu-header {
  border-bottom-color: #374151;
}

.mobile-menu-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.dark .mobile-menu-title {
  color: #f3f4f6;
}

.mobile-menu-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dark .mobile-menu-close {
  background: #374151;
}

.mobile-menu-close:hover {
  background: #e5e7eb;
}

.dark .mobile-menu-close:hover {
  background: #4b5563;
}

.mobile-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.dark .mobile-category-item {
  background: #374151;
}

.mobile-category-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.dark .mobile-category-item:hover {
  background: #4b5563;
}

.mobile-category-item.active {
  border-color: var(--primary);
  background: #f0f4ff;
}

.dark .mobile-category-item.active {
  background: rgba(84, 105, 255, 0.1);
  border-color: #5469ff;
}

.mobile-category-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-category-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.125rem;
}

.mobile-category-item[data-category="Πολιτική"] .mobile-category-icon {
  background: rgba(220, 38, 38, 0.1);
  color: var(--cat-politics);
}

.mobile-category-item[data-category="Ελλάδα"] .mobile-category-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--cat-greece);
}

.mobile-category-item[data-category="Αθλητικά"] .mobile-category-icon {
  background: rgba(22, 163, 74, 0.1);
  color: var(--cat-sports);
}

.mobile-category-item[data-category="Κόσμος"] .mobile-category-icon {
  background: rgba(124, 58, 237, 0.1);
  color: var(--cat-world);
}

.mobile-category-item[data-category="Lifestyle"] .mobile-category-icon {
  background: rgba(236, 72, 153, 0.1);
  color: var(--cat-lifestyle);
}

.mobile-category-item[data-category="Business"] .mobile-category-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--cat-business);
}

.mobile-category-item[data-category="Τεχνολογία"] .mobile-category-icon {
  background: rgba(8, 145, 178, 0.1);
  color: var(--cat-tech);
}

.mobile-category-item[data-category="Education"] .mobile-category-icon {
  background: rgba(147, 51, 234, 0.1);
  color: var(--cat-education);
}

.mobile-category-name {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
}

.dark .mobile-category-name {
  color: #f3f4f6;
}

.mobile-category-count {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: #e5e7eb;
  color: #4b5563;
  border-radius: 1rem;
}

.dark .mobile-category-count {
  background: #1f2937;
  color: #9ca3af;
}

.mobile-category-item.active .mobile-category-count {
  background: var(--primary);
  color: white;
}

/* Article List Items */
.article-list-item {
  position: relative;
  border-radius: 0.8rem;
  border: 1.2px solid #ebedff;
  box-shadow: 0 3px 14px rgba(123, 133, 255, 0.08);
  background: white;
  transition: all 0.23s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  display: flex;
  min-height: 120px;
}

.dark .article-list-item {
  background: #1f2937;
  border-color: #374151;
}

.article-list-item:hover {
  border-color: #7b85ff;
  box-shadow: 0 6px 18px rgba(75, 87, 255, 0.1);
}

.article-image-wrapper {
  width: 160px;
  min-width: 160px;
  flex-shrink: 0;
  position: relative;
  background: #f3f4f6;
  overflow: hidden;
  aspect-ratio: 16/9; /* Prevent layout shift */
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Remove inline spacing */
}

.article-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9; /* Match image aspect ratio */
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  position: relative;
  overflow: hidden;
}

.dark .article-image-placeholder {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: #6b7280;
}

.article-image-placeholder {
  transition: opacity 0.2s ease;
}

.article-image-placeholder.hidden {
  display: none !important;
}

.article-image-placeholder.loading {
  opacity: 0.7;
}

.article-image-placeholder .placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
  z-index: 1;
}

.article-image-placeholder .placeholder-content i {
  font-size: 2rem;
  opacity: 0.6;
}

.article-image-placeholder .placeholder-text {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.dark .article-image-placeholder .placeholder-content i,
.dark .article-image-placeholder .placeholder-text {
  opacity: 0.8;
}

.article-content {
  flex: 1;
  padding: 0.8rem 1.1rem;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 1rem; /* 16px for readability */
  font-weight: 700;
  color: #1e40af; /* Improved contrast */
  margin-bottom: 0.5rem;
  line-height: 1.5; /* Better line height */
}

.article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover,
.article-title a:focus {
  color: #5469ff;
  outline: none;
}

.article-title a:focus-visible {
  outline: 2px solid #5469ff;
  outline-offset: 2px;
  border-radius: 2px;
}

.dark .article-title {
  color: #aeb5ff; /* Good contrast on dark background */
}

.dark .article-title a:hover,
.dark .article-title a:focus {
  color: #93c5fd;
}

.article-desc {
  color: #374151; /* Improved contrast */
  font-size: 1rem; /* 16px for readability */
  line-height: 1.6; /* Better line height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

.dark .article-desc {
  color: #e5e7eb; /* Improved contrast on dark background */
}

.article-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem; /* 14px - acceptable for metadata */
  line-height: 1.5;
  color: #7b85ff;
  font-weight: 600;
  gap: 0.55rem;
  margin-bottom: 0.5rem; /* Improved spacing */
}

/* Article Share Buttons */
.article-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.dark .article-share-buttons {
  border-top-color: #374151;
}

.share-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.dark .share-label {
  color: #9ca3af;
}

.share-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.dark .share-btn {
  background: #374151;
  color: #9ca3af;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-facebook:hover {
  background: #1877f2;
  color: #ffffff;
}

.share-twitter:hover {
  background: #1da1f2;
  color: #ffffff;
}

.share-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
}

.share-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
}

.share-copy:hover {
  background: #6b7280;
  color: #ffffff;
}

.share-btn.copied {
  background: #10b981;
  color: #ffffff;
}

.publisher-logo {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: white;
  border: 1.2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.dark .publisher-logo {
  background: #374151;
  border-color: #4b5563;
}

.publisher-logo img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  border-radius: 50%;
}

.publisher-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.dark .publisher-logo-fallback {
  color: #9ca3af;
}

/* New Content Notification Badge (Facebook-style) */
.new-content-badge {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.new-content-badge.hidden {
  display: none;
}

.new-content-badge-trigger {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #5469ff 0%, #3d4ff7 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(84, 105, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: badgePulse 2s ease-in-out infinite;
  min-width: 3.5rem;
  min-height: 3.5rem;
}

.new-content-badge-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(84, 105, 255, 0.5);
}

.new-content-badge-trigger:active {
  transform: scale(0.95);
}

.new-content-badge-trigger:focus-visible {
  outline: 2px solid #5469ff;
  outline-offset: 2px;
}

.new-content-badge-trigger i {
  font-size: 1.25rem;
}

.new-content-badge-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #dc431b;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.375rem;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.new-content-badge-count:empty {
  display: none;
}

.new-content-badge-popup {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 320px;
  overflow: hidden;
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
  margin-bottom: 0.5rem;
}

.new-content-badge-popup.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.new-content-badge-popup.hidden {
  display: none;
}

.dark .new-content-badge-popup {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.new-content-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e9ff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.dark .new-content-popup-header {
  background: linear-gradient(135deg, #2533b8 0%, #1f2937 100%);
  border-color: #374151;
}

.new-content-popup-header i {
  font-size: 1.25rem;
  color: #5469ff;
}

.new-content-popup-header .font-semibold {
  flex: 1;
  color: #1f2937;
  font-size: 0.9375rem;
}

.dark .new-content-popup-header .font-semibold {
  color: #f3f4f6;
}

.new-content-popup-close {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
}

.new-content-popup-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.dark .new-content-popup-close {
  color: #9ca3af;
}

.dark .new-content-popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

.new-content-popup-body {
  padding: 1rem;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.5;
}

.dark .new-content-popup-body {
  color: #d1d5db;
}

.new-content-popup-body #new-content-count-text {
  font-weight: 700;
  color: #5469ff;
}

.dark .new-content-popup-body #new-content-count-text {
  color: #7b91ff;
}

.new-content-popup-actions {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.dark .new-content-popup-actions {
  border-color: #374151;
  background: #111827;
}

.new-content-refresh-btn {
  width: 100%;
  background: linear-gradient(135deg, #5469ff 0%, #3d4ff7 100%);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
}

.new-content-refresh-btn:hover {
  background: linear-gradient(135deg, #3d4ff7 0%, #2e3ee3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(84, 105, 255, 0.3);
}

.new-content-refresh-btn:active {
  transform: translateY(0);
}

.new-content-refresh-btn:focus-visible {
  outline: 2px solid #5469ff;
  outline-offset: 2px;
}

.new-content-refresh-btn i {
  font-size: 0.875rem;
}

.new-content-refresh-btn:hover i {
  animation: spin 1s linear infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(84, 105, 255, 0.4);
  }
  50% {
    box-shadow: 0 4px 16px rgba(84, 105, 255, 0.6);
  }
}

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

/* Mobile styles for notification badge */
@media (max-width: 768px) {
  .new-content-badge {
    top: auto;
    bottom: 5rem;
    right: 1rem;
  }
  
  .new-content-badge-trigger {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
  }
  
  .new-content-badge-trigger i {
    font-size: 1.125rem;
  }
  
  .new-content-badge-popup {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    right: 0;
    min-width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    max-width: 320px;
  }
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
  padding: 2rem 0;
}

.dark footer {
  background: #111827;
  border-color: #374151;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-logo-section {
  margin-bottom: 1.5rem;
}

.footer-logo-section img {
  height: 40px;
  width: auto;
  margin: 0 auto;
  transition: transform 0.3s;
}

.footer-logo-section a:hover img {
  transform: scale(1.05);
}

.footer-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.dark .footer-text {
  color: #9ca3af;
}

.footer-powered {
  font-size: 0.8125rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.dark .footer-powered {
  color: #6b7280;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-divider {
  width: 60px;
  height: 2px;
  background: #e5e7eb;
  margin: 1.5rem auto;
}

.dark .footer-divider {
  background: #374151;
}



/* Maps */
#traffic-map,
#weather-map {
  height: 600px;
  min-height: 500px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: #f0f4f8;
}

.dark #traffic-map,
.dark #weather-map {
  background-color: #1a202c;
}

/* Traffic Page - Refined Styles */
.traffic-container {
  width: 100%;
  max-width: 100%;
}

.traffic-header {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.dark .traffic-header {
  background: #1f2937;
  border-color: #374151;
}

.traffic-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #dc431b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.traffic-action-btn:hover {
  background: #b83515;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(220, 67, 27, 0.3);
}

.traffic-action-btn:active {
  transform: translateY(0);
}

.traffic-map-wrapper {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.dark .traffic-map-wrapper {
  border-color: #374151;
}

.traffic-map-main {
  width: 100%;
  height: 70vh;
  min-height: 600px;
  border-radius: 12px;
}

/* Quick Navigation */
.traffic-quick-nav {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.dark .traffic-quick-nav {
  background: #1f2937;
  border-color: #374151;
}

.traffic-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark .traffic-section-title {
  color: #f3f4f6;
}

.quick-nav-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.quick-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  min-height: 80px;
}

.dark .quick-nav-btn {
  background: #111827;
  border-color: #374151;
  color: #d1d5db;
}

.quick-nav-btn i {
  font-size: 24px;
  color: #dc431b;
}

.quick-nav-btn:hover {
  background: #f3f4f6;
  border-color: #dc431b;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .quick-nav-btn:hover {
  background: #1f2937;
  border-color: #dc431b;
}

.quick-nav-btn.active {
  background: #dc431b;
  border-color: #dc431b;
  color: white;
}

.quick-nav-btn.active i {
  color: white;
}

/* Traffic Controls */
.traffic-control-ui {
  background: white;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  min-width: 220px;
}

.dark .traffic-control-ui {
  background: #1f2937;
  border-color: #374151;
}

.traffic-control-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark .traffic-control-title {
  color: #f3f4f6;
}

.traffic-control-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.traffic-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.traffic-checkbox:hover {
  background: #f3f4f6;
}

.dark .traffic-checkbox:hover {
  background: #111827;
}

.traffic-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #dc431b;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  flex: 1;
}

.dark .checkbox-label {
  color: #d1d5db;
}

.checkbox-label i {
  font-size: 16px;
  color: #dc431b;
}

/* Route Planner - Outside Map */
.traffic-route-planner-container {
  width: 100%;
  margin-bottom: 24px;
}

.traffic-route-planner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.route-control-ui {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  width: 100%;
  max-width: 600px;
}

.dark .route-control-ui {
  background: #1f2937;
  border-color: #374151;
}

.route-planner-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark .route-planner-title {
  color: #f3f4f6;
}

.route-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-input-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dark .route-input-label {
  color: #9ca3af;
}

.route-input-label i {
  font-size: 14px;
  color: #dc431b;
}

.route-autocomplete-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: white;
}

.dark .route-autocomplete-input {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
}

.route-autocomplete-input:focus {
  outline: none;
  border-color: #dc431b;
  box-shadow: 0 0 0 3px rgba(220, 67, 27, 0.1);
}

.route-input-wrapper.has-value .route-autocomplete-input {
  border-color: #10b981;
}

.route-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.route-select {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.dark .route-select {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
}

.route-select:focus {
  outline: none;
  border-color: #dc431b;
}

.route-button-calculate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #dc431b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.route-button-calculate:hover {
  background: #b83515;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(220, 67, 27, 0.3);
}

.route-button-calculate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.route-info {
  margin-top: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.dark .route-info {
  background: #111827;
  border-color: #374151;
}

.route-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.dark .route-stat {
  background: #1f2937;
  border-color: #374151;
}

.route-stat i {
  font-size: 20px;
  color: #dc431b;
  width: 24px;
  text-align: center;
}

.route-stat-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.dark .route-stat-value {
  color: #f3f4f6;
}

.route-stat-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.dark .route-stat-label {
  color: #9ca3af;
}

.traffic-duration {
  border-left: 3px solid #f59e0b;
}

.traffic-duration.high-delay {
  border-left-color: #ef4444;
}

.traffic-delay {
  color: #ef4444;
  font-weight: 600;
  margin-left: 4px;
}

.route-alternatives {
  margin-top: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.dark .route-alternatives {
  background: #111827;
  border-color: #374151;
}

.route-alternatives-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}

.dark .route-alternatives-header {
  color: #d1d5db;
}

.route-alternatives-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-alternative-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.dark .route-alternative-item {
  background: #1f2937;
  border-color: #374151;
}

.route-alternative-item:hover {
  border-color: #dc431b;
  transform: translateX(4px);
}

.route-alternative-item.active {
  border-color: #dc431b;
  background: #fef2f2;
}

.dark .route-alternative-item.active {
  background: #7f1d1d;
}

.alternative-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alternative-distance {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.dark .alternative-distance {
  color: #f3f4f6;
}

.alternative-duration {
  font-size: 12px;
  color: #6b7280;
}

.dark .alternative-duration {
  color: #9ca3af;
}

.route-button-clear {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin-top: 12px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.route-button-clear:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

/* Traffic Search */
.traffic-search-container {
  background: white;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
}

.dark .traffic-search-container {
  background: #1f2937;
  border-color: #374151;
}

/* Traffic Legend */
.traffic-legend {
  background: white;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  min-width: 200px;
}

.dark .traffic-legend {
  background: #1f2937;
  border-color: #374151;
}

.traffic-legend h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.dark .traffic-legend h5 {
  color: #f3f4f6;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #374151;
}

.dark .legend-item {
  color: #d1d5db;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Navigation Search for GPS - Compact */
.traffic-nav-search {
  width: 100%;
  margin-bottom: 20px;
}

.nav-search-container {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.dark .nav-search-container {
  background: #1f2937;
  border-color: #374151;
}

.nav-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-search-input-wrapper {
  flex: 1;
  min-width: 0;
}

.nav-search-autocomplete-wrapper {
  width: 100%;
}

.nav-search-autocomplete {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  background: white;
  min-height: 44px;
}

.dark .nav-search-autocomplete {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
}

.nav-search-autocomplete:focus {
  outline: none;
  border-color: #dc431b;
  box-shadow: 0 0 0 3px rgba(220, 67, 27, 0.1);
}

.nav-gps-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #dc431b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
  min-width: 100px;
  justify-content: center;
  opacity: 0.5;
  cursor: not-allowed;
  flex-shrink: 0;
}

.nav-gps-button.enabled {
  opacity: 1;
  cursor: pointer;
}

.nav-gps-button.enabled:hover {
  background: #b83515;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 67, 27, 0.3);
}

.nav-gps-button.enabled:active {
  transform: translateY(0);
}

.nav-gps-button i {
  font-size: 16px;
}

/* Utility Classes */
.transition-smooth {
  transition: all 0.2s;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-in;
}

.hidden {
  display: none !important;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.1;
    transform: scale(1.5);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes dataUpdate {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Global Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

.dark ::-webkit-scrollbar-thumb {
  background: #374151;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Smart Context Container */
.smart-context-container {
  margin-bottom: 0.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Smart Contextual Display Styles - COMPACT VERSION */
.smart-context-display {
  padding: 0.5rem 0.625rem;
  background: linear-gradient(90deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 2.5rem;
  flex-wrap: wrap;
  gap: 0.25rem;
  animation: contextFadeIn 0.5s ease-out;
}

.smart-context-display::before {
  content: '🤖';
  font-size: 0.75rem;
  opacity: 0.6;
  margin-right: 0.375rem;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.125rem;
}

.dark .smart-context-display {
  background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}

.context-content {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.context-main {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
  flex-shrink: 0;
}

.dark .context-main {
  color: #f9fafb;
}

.context-subtitle {
  font-size: 0.6875rem;
  color: #6b7280;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .context-subtitle {
  color: #9ca3af;
}

.context-confidence {
  font-size: 0.5625rem;
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.125rem;
}

.dark .context-confidence {
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

/* Contextual Display Animations */
@keyframes contextFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Breaking News Specific Styling */
.smart-context-display[data-type="breaking-news"] {
  background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
  animation: breakingPulse 2s infinite;
}

.dark .smart-context-display[data-type="breaking-news"] {
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 100%);
  border-color: #dc2626;
}

@keyframes breakingPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
  }
  50% { 
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

/* Activity Spike Styling */
.smart-context-display[data-type="activity-spike"] {
  background: linear-gradient(90deg, #f0f9ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}

.dark .smart-context-display[data-type="activity-spike"] {
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%);
  border-color: #3b82f6;
}

/* Fresh Content Styling */
.smart-context-display[data-type="fresh-content"] {
  background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.dark .smart-context-display[data-type="fresh-content"] {
  background: linear-gradient(90deg, #14532d 0%, #166534 100%);
  border-color: #22c55e;
}

/* Reading Progress Styling */
.smart-context-display[data-type="reading-progress"],
.smart-context-display[data-type="reading-complete"] {
  background: linear-gradient(90deg, #fefce8 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.dark .smart-context-display[data-type="reading-progress"],
.dark .smart-context-display[data-type="reading-complete"] {
  background: linear-gradient(90deg, #78350f 0%, #92400e 100%);
  border-color: #f59e0b;
}

/* Read Articles Styling */
.article-list-item.read {
  opacity: 0.7;
  position: relative;
}

.article-list-item.read::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #10b981;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 10;
}

.dark .article-list-item.read::after {
  background: #059669;
}

.article-list-item.read .article-title a {
  color: #6b7280 !important;
  text-decoration: line-through;
}

.dark .article-list-item.read .article-title a {
  color: #9ca3af !important;
}

/* Important Article Styles */
.important-article {
  border-color: #f59e0b;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
}

.breaking-article {
  border-color: #ef4444;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.08) 0%, transparent 100%);
  animation: subtlePulse 2s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { 
    box-shadow: 0 3px 14px rgba(239, 68, 68, 0.1); 
  }
  50% { 
    box-shadow: 0 3px 20px rgba(239, 68, 68, 0.2); 
  }
}

.importance-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.importance-badge i {
  font-size: 0.625rem;
}

.article-sources {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.dark .article-sources {
  border-top-color: #374151;
}

/* Trending Stories Widget */
.trending-stories-widget {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dark .trending-stories-widget {
  background: #1f2937;
  border-color: #374151;
}

.trending-stories-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trending-story-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dark .trending-story-item {
  background: #111827;
  border-color: #374151;
}

.trending-story-item:hover {
  background: #f3f4f6;
  border-color: #f59e0b;
  transform: translateX(2px);
}

.dark .trending-story-item:hover {
  background: #1a202c;
}

.trending-rank {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  font-weight: 700;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

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

.trending-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .trending-title {
  color: #f3f4f6;
}

.trending-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
}

.source-count {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dark .source-count {
  color: #9ca3af;
}

.source-count i {
  font-size: 0.5rem;
}

.breaking-badge {
  background: #ef4444;
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: pulse 2s infinite;
}

.breaking-badge i {
  font-size: 0.5rem;
}

/* Weather Dashboard Styles */
.weather-dashboard-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

.dark .weather-dashboard-section {
  background: #1f2937;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.weather-dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 25px 30px;
  color: white;
}

.weather-dashboard-title {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
}

.weather-dashboard-title i {
  background: linear-gradient(45deg, #ffd700, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.weather-summary-panel {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 25px 30px;
  color: white;
  position: relative;
  overflow: hidden;
}

.weather-summary-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulseWeather 4s ease-in-out infinite;
}

@keyframes pulseWeather {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.current-weather-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
  z-index: 2;
}

.current-weather-loading {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.current-weather-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

.current-weather-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.current-weather-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.current-temp {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.current-location {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
}

.current-description {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 5px;
}

.current-weather-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.weather-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.weather-detail-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.weather-detail-value {
  font-weight: 600;
  margin-left: auto;
}

.weather-controls-panel {
  background: #f8fafc;
  padding: 20px 30px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.weather-location-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-location-selector label {
  font-weight: 500;
  color: #374151;
}

.weather-city-dropdown {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.weather-city-dropdown:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.weather-view-toggles {
  display: flex;
  gap: 8px;
}

.weather-view-btn {
  padding: 10px 20px;
  border: 2px solid #d1d5db;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #6b7280;
}

.weather-view-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.weather-view-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.weather-view-container {
  display: none;
  padding: 30px;
}

.weather-view-container.active {
  display: block;
}

.weather-map {
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.forecast-panels {
  display: grid;
  gap: 25px;
}

.forecast-panel {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
}

.forecast-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e5e7eb;
}

.forecast-panel-title i {
  color: #3b82f6;
  font-size: 1.4rem;
}

.forecast-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 40px;
  color: #6b7280;
  font-size: 1.1rem;
}

.hourly-forecast-container {
  overflow-x: auto;
  padding-bottom: 10px;
}

.hourly-forecast-grid {
  display: flex;
  gap: 15px;
  min-width: max-content;
  padding: 10px 0;
}

.hourly-item {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  min-width: 120px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.hourly-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.hourly-time {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.hourly-icon {
  font-size: 2rem;
  margin: 10px 0;
  display: block;
}

.hourly-temp {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.hourly-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.hourly-rain {
  font-size: 0.8rem;
  color: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.daily-forecast-container {
  display: grid;
  gap: 12px;
}

.daily-item {
  background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.daily-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: #3b82f6;
}

.daily-date {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
}

.daily-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.daily-icon {
  font-size: 2.2rem;
}

.daily-desc {
  color: #6b7280;
}

.daily-temps {
  display: flex;
  gap: 10px;
  font-weight: 600;
}

.daily-high {
  color: #dc2626;
}

.daily-low {
  color: #2563eb;
}

.daily-details {
  display: flex;
  gap: 15px;
  color: #6b7280;
  font-size: 0.9rem;
}

.weather-alerts-panel {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.weather-alerts-container {
  display: grid;
  gap: 15px;
}

.weather-alert {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #dc2626;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.alert-title {
  font-weight: 600;
  color: #dc2626;
  font-size: 1.1rem;
}

.alert-time {
  color: #6b7280;
  font-size: 0.9rem;
  margin-left: auto;
}

.alert-description {
  color: #374151;
  line-height: 1.6;
}


/* RSS Feed Submission Modal - Complete Fix for Desktop & Mobile */
.feed-submission-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.feed-submission-modal.active {
  display: flex;
  opacity: 1;
}

.feed-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.feed-modal-container {
  position: relative;
  margin: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  height: 80vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feed-submission-modal.active .feed-modal-container {
  transform: scale(1);
}

.dark .feed-modal-container {
  background: #1f2937;
  border: 1px solid #374151;
}

.feed-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.dark .feed-modal-header {
  border-bottom-color: #374151;
}

.feed-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dark .feed-modal-title {
  color: #f9fafb;
}

.feed-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.dark .feed-modal-close {
  background: #374151;
  color: #9ca3af;
}

.dark .feed-modal-close:hover {
  background: #4b5563;
  color: #d1d5db;
}

.feed-modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.external-form-container {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.external-form-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
  flex: 1;
  min-height: 400px;
}

/* Large Desktop Screens (1440px+) */
@media (min-width: 1440px) {
  .feed-modal-container {
    max-width: 1100px;
    width: 80%;
  }
}

/* Desktop Screens */
@media (min-width: 1024px) {
  .feed-modal-container {
    max-width: 1000px;
    width: 85%;
    height: 85vh;
  }
  
  .feed-modal-header {
    padding: 2rem;
  }
  
  .feed-modal-title {
    font-size: 1.75rem;
  }
  
  .feed-modal-body {
    padding: 2rem;
  }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 481px) {
  .feed-modal-container {
    width: 95%;
    max-width: 600px;
    max-height: 95vh;
    height: 90vh;
    margin: 2.5vh auto;
  }
  
  .feed-modal-header {
    padding: 1rem;
  }
  
  .feed-modal-title {
    font-size: 1.25rem;
  }
  
  .feed-modal-body {
    padding: 1rem;
  }
  
  .external-form-container iframe {
    min-height: 0;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .feed-modal-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
  
  .feed-modal-header {
    padding: 1rem;
    background: white;
    z-index: 1;
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
  }
  
  .dark .feed-modal-header {
    background: #1f2937;
  }
  
  .feed-modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
  }
  
  .external-form-container {
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
  }
  
  .external-form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    min-height: 0;
  }
}






/* ===== RESPONSIVE DESIGN ===== */

/* ====== DEMO.HTML HEADER DESIGN ====== */
/* Exact CSS copy from demo.html */

/* Hide by default, show on desktop */
.demo-glass-header {
  display: none;
}

@media (min-width: 1024px) {
  .demo-glass-header {
    display: block;
  }
  
  /* Hide old headers on desktop */
  .glass-header-old {
    display: none !important;
  }
}

/* Premium glass effect */
.glass-header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.dark .glass-header {
  background: rgba(17, 24, 39, 0.85);
  border-bottom-color: rgba(55, 65, 81, 0.6);
}

/* Modern category pills */
.category-pill {
  position: relative;
  padding: 10px 20px;
  background: white;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .category-pill {
  background: #1f2937;
  color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #e5e7eb;
}

.dark .category-pill:hover {
  border-color: #374151;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.category-pill.active {
  background: #5469ff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(84, 105, 255, 0.3);
}

.category-pill.category-btn[data-category="Πολιτική"].active {
  background: var(--cat-politics);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill.category-btn[data-category="Ελλάδα"].active {
  background: var(--cat-greece);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill.category-btn[data-category="Αθλητικά"].active {
  background: var(--cat-sports);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill.category-btn[data-category="Κόσμος"].active {
  background: var(--cat-world);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill.category-btn[data-category="Lifestyle"].active {
  background: var(--cat-lifestyle);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill.category-btn[data-category="Business"].active {
  background: var(--cat-business);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill.category-btn[data-category="Τεχνολογία"].active {
  background: var(--cat-tech);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill.category-btn[data-category="Education"].active {
  background: var(--cat-education);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-pill .category-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
}

.category-pill.active .category-dot {
  background: white;
  opacity: 1;
  animation: pulse-slow 2s infinite;
}

/* Smooth clock animations */
.clock-canvas {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  transition: transform 0.3s ease;
}

.clock-wrapper:hover .clock-canvas {
  transform: scale(1.1);
}

/* Weather widget */
.weather-widget {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.weather-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Traffic widget */
.traffic-widget {
  position: relative;
  overflow: hidden;
}

.traffic-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

.traffic-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #ef4444;
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Smart search */
.search-container {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 48px;
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dark .search-input {
  background: #374151;
  color: #f9fafb;
}

.search-input:focus {
  background: white;
  border-color: #5469ff;
  box-shadow: 0 0 0 4px rgba(84, 105, 255, 0.1);
  outline: none;
}

.dark .search-input:focus {
  background: #4b5563;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  transition: color 0.3s ease;
}

.search-input:focus ~ .search-icon {
  color: #5469ff;
}

/* Live indicator */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.dark .live-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse-slow 2s infinite;
}

/* Floating category navigation */
.floating-categories {
  position: relative;
  padding: 12px 0;
  background: linear-gradient(to bottom, white 0%, rgba(255,255,255,0.95) 100%);
}

.dark .floating-categories {
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 0 24px;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

/* Gradient fade on scroll edges */
.floating-categories::before,
.floating-categories::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 10;
}

.floating-categories::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}

.floating-categories::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

.dark .floating-categories::before {
  background: linear-gradient(to right, rgba(17, 24, 39, 0.98) 0%, transparent 100%);
}

.dark .floating-categories::after {
  background: linear-gradient(to left, rgba(17, 24, 39, 0.98) 0%, transparent 100%);
}

/* Clock wrapper styling */
#header-clock-row .header-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#header-clock-row .header-clock:hover {
  transform: scale(1.05);
}

#header-clock-row .header-clock-canvas {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

#header-clock-row .header-clock-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: 0.25rem;
}

.dark #header-clock-row .header-clock-label {
  color: #9ca3af;
}

/* Mobile Header and Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: left 0.3s ease;
}

.dark .mobile-menu {
  background: #1f2937;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active ~ .mobile-menu-overlay,
.mobile-menu.active .mobile-menu-overlay {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-content {
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.dark .mobile-menu-header {
  border-bottom-color: #374151;
}

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

.mobile-category-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
}

.dark .mobile-category-btn {
  background: #374151;
  color: #9ca3af;
}

.mobile-category-btn:hover {
  background: #e5e7eb;
}

.dark .mobile-category-btn:hover {
  background: #4b5563;
}

.mobile-category-btn.active {
  background: #5469ff;
  color: white;
}

.mobile-category-btn i {
  font-size: 1rem;
}

@media (min-width: 1024px) {
  /* Show desktop header */
  .demo-glass-header {
    display: block !important;
  }
}

/* ===== END OF DEMO HEADER DESIGN ===== */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .demo-logo-group:hover .demo-logo-icon {
    box-shadow: 0 12px 24px rgba(84, 105, 255, 0.3);
  }
  
  .demo-logo-wrapper {
    position: relative;
  }
  
  .demo-logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #5469ff 0%, #2e3ee3 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(84, 105, 255, 0.2);
    transition: all 0.3s ease;
  }
  
  .demo-logo-icon i {
    font-size: 1.125rem;
    color: white;
  }
  
  .demo-live-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  .dark .demo-live-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
  }
  
  .demo-live-dot {
    width: 0.375rem;
    height: 0.375rem;
    background: currentColor;
    border-radius: 50%;
    animation: pulse-slow 2s infinite;
  }
  
  .demo-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }
  
  .demo-logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  
  .dark .demo-logo-title {
    color: #f9fafb;
  }
  
  .demo-logo-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
  }
  
  .dark .demo-logo-subtitle {
    color: #9ca3af;
  }
  
  .demo-highlight {
    color: #5469ff;
    font-weight: 600;
  }
  
  .dark .demo-highlight {
    color: #818cf8;
  }
  
  /* Center Section: Search */
  .demo-search-section {
    flex: 1;
    max-width: 32rem;
    margin: 0 auto;
  }
  
  .demo-search-container {
    position: relative;
    width: 100%;
  }
  
  .demo-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 3rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.3s ease;
  }
  
  .demo-search-input::placeholder {
    color: #9ca3af;
  }
  
  .dark .demo-search-input {
    background: #374151;
    color: #f9fafb;
  }
  
  .demo-search-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(84, 105, 255, 0.1);
    outline: none;
  }
  
  .dark .demo-search-input:focus {
    background: #4b5563;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  }
  
  .demo-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
  }
  
  .demo-search-input:focus ~ .demo-search-icon {
    color: var(--primary);
  }
  
  /* Right Section: Info & Actions */
  .demo-right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* World Clocks */
  .demo-clocks-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(243, 244, 246, 0.6);
    border-radius: 1rem;
  }
  
  .dark .demo-clocks-container {
    background: rgba(55, 65, 81, 0.6);
  }
  
  .demo-clocks-grid {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .demo-clocks-grid .header-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .demo-clocks-grid .header-clock:hover {
    transform: scale(1.05);
  }
  
  .demo-clocks-grid .header-clock-canvas {
    width: 2.5rem;
    height: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  }
  
  .demo-clocks-grid .header-clock-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0;
  }
  
  .dark .demo-clocks-grid .header-clock-label {
    color: #9ca3af;
  }
  
  /* Weather Widget */
  .demo-weather-widget {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .demo-weather-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  }
  
  .demo-weather-widget i {
    font-size: 1.125rem;
  }
  
  .demo-weather-location {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.2;
    margin: 0;
  }
  
  .demo-weather-temp {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
  }
  
  /* Traffic Widget */
  .demo-traffic-widget {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .dark .demo-traffic-widget {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
  }
  
  .demo-traffic-widget:hover {
    border-color: #d1d5db;
    background: #f9fafb;
  }
  
  .dark .demo-traffic-widget:hover {
    border-color: #4b5563;
    background: #374151;
  }
  
  .demo-traffic-widget i {
    color: #6b7280;
  }
  
  .dark .demo-traffic-widget i {
    color: #9ca3af;
  }
  
  .demo-traffic-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
  }
  
  .demo-traffic-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #ef4444;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  
  @keyframes ping {
    75%, 100% {
      transform: translate(-50%, -50%) scale(2);
      opacity: 0;
    }
  }
  
  /* Action Buttons */
  .demo-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .demo-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .dark .demo-action-btn {
    color: #9ca3af;
  }
  
  .demo-action-btn:hover {
    background: rgba(243, 244, 246, 0.8);
    color: #111827;
  }
  
  .dark .demo-action-btn:hover {
    background: rgba(55, 65, 81, 0.8);
    color: #f9fafb;
  }
  
  .demo-action-btn i {
    font-size: 1rem;
  }
  
  /* Floating Categories Bar */
  .demo-categories-bar {
    position: relative;
    padding: 0.75rem 0;
    background: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0.95) 100%);
    border-top: 1px solid rgba(229, 231, 235, 0.6);
  }
  
  .dark .demo-categories-bar {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.95) 100%);
    border-top-color: rgba(55, 65, 81, 0.6);
  }
  
  .demo-categories-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
  }
  
  .demo-category-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 0 1.5rem;
  }
  
  .demo-category-scroll::-webkit-scrollbar {
    display: none;
  }
  
  /* Gradient fade on scroll edges */
  .demo-categories-bar::before,
  .demo-categories-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    pointer-events: none;
    z-index: 10;
  }
  
  .demo-categories-bar::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
  }
  
  .demo-categories-bar::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
  }
  
  .dark .demo-categories-bar::before {
    background: linear-gradient(to right, rgba(17, 24, 39, 0.98) 0%, transparent 100%);
  }
  
  .dark .demo-categories-bar::after {
    background: linear-gradient(to left, rgba(17, 24, 39, 0.98) 0%, transparent 100%);
  }
  
  /* Modern category pills */
  .demo-category-pill {
    position: relative;
    padding: 0.625rem 1.25rem;
    background: white;
    border-radius: 1.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  
  .dark .demo-category-pill {
    background: #1f2937;
    color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .demo-category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
  }
  
  .dark .demo-category-pill:hover {
    border-color: #374151;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  .demo-category-pill i {
    font-size: 0.75rem;
  }
  
  .demo-category-pill.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(84, 105, 255, 0.3);
  }
  
  .demo-category-pill.category-btn[data-category="Πολιτική"].active {
    background: var(--cat-politics);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-category-pill.category-btn[data-category="Ελλάδα"].active {
    background: var(--cat-greece);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-category-pill.category-btn[data-category="Αθλητικά"].active {
    background: var(--cat-sports);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-category-pill.category-btn[data-category="Κόσμος"].active {
    background: var(--cat-world);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-category-pill.category-btn[data-category="Lifestyle"].active {
    background: var(--cat-lifestyle);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-category-pill.category-btn[data-category="Business"].active {
    background: var(--cat-business);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-category-pill.category-btn[data-category="Τεχνολογία"].active {
    background: var(--cat-tech);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-category-pill.category-btn[data-category="Education"].active {
    background: var(--cat-education);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .demo-cat-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
  }
  
  .demo-cat-pill.active .demo-cat-dot {
    background: white;
    opacity: 1;
    animation: pulse-slow 2s infinite;
  }
  
  /* Adjust sticky controls */
  .sticky-controls {
    top: 8.5rem;
  }
  
  /* Hide old header on desktop */
  .glass-header {
    display: none;
  }
  
  .nav-container {
    display: none;
  }
  
  .search-wrapper {
    display: none;
  }
}

/* Mobile: Hide demo header, show old header */
@media (max-width: 1023px) {
  .demo-header-desktop {
    display: none;
  }
  
  .glass-header {
    display: block;
  }
  
  .nav-container {
    display: block;
  }
  
  .search-wrapper {
    display: block;
  }
}

/* ====== OLD ENTERPRISE GLASS HEADER DESIGN ====== */
/* Fresh enterprise design - elegant, modern, glass effect - desktop only */

/* Hide by default on mobile */
.enterprise-header-desktop {
  display: none;
}

@media (min-width: 1024px) {
  /* Enterprise Header */
  .enterprise-header-desktop {
    display: block;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  
  .dark .enterprise-header-desktop {
    background: rgba(17, 24, 39, 0.85);
    border-bottom-color: rgba(55, 65, 81, 0.5);
  }
  
  /* Top Row */
  .enterprise-header-top {
    height: 4.5rem;
    padding: 0 2rem;
  }
  
  .enterprise-header-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  
  /* Logo Section with Beta Badge */
  .enterprise-logo-section {
    flex-shrink: 0;
  }
  
  .enterprise-logo-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
  }
  
  .enterprise-logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, #5469ff 0%, #3d4ff7 100%);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(84, 105, 255, 0.2);
    flex-shrink: 0;
  }
  
  .enterprise-logo-icon i {
    font-size: 1.25rem;
    color: white;
  }
  
  .enterprise-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    position: relative;
  }
  
  .enterprise-logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }
  
  .dark .enterprise-logo-title {
    color: #f9fafb;
  }
  
  .enterprise-beta-badge {
    position: absolute;
    top: -0.375rem;
    right: -2.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    letter-spacing: 0.05em;
  }
  
  .dark .enterprise-beta-badge {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.2);
  }
  
  /* Search Section */
  .enterprise-search-section {
    flex: 1;
    max-width: 36rem;
    margin: 0 auto;
  }
  
  .enterprise-search-container {
    position: relative;
    width: 100%;
  }
  
  .enterprise-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 2.75rem;
    background: rgba(243, 244, 246, 0.7);
    border: 1.5px solid transparent;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s ease;
  }
  
  .enterprise-search-input::placeholder {
    color: #9ca3af;
  }
  
  .dark .enterprise-search-input {
    background: rgba(55, 65, 81, 0.7);
    color: #f9fafb;
  }
  
  .enterprise-search-input:hover {
    background: rgba(229, 231, 235, 0.85);
  }
  
  .dark .enterprise-search-input:hover {
    background: rgba(75, 85, 99, 0.85);
  }
  
  .enterprise-search-input:focus {
    background: white;
    border-color: #5469ff;
    box-shadow: 0 0 0 3px rgba(84, 105, 255, 0.1);
    outline: none;
  }
  
  .dark .enterprise-search-input:focus {
    background: #4b5563;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  }
  
  .enterprise-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
  }
  
  .enterprise-search-input:focus ~ .enterprise-search-icon {
    color: #5469ff;
  }
  
  /* Actions Section */
  .enterprise-actions-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  /* Clocks */
  .enterprise-clocks-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 250, 251, 0.6);
    border-radius: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
  }
  
  .dark .enterprise-clocks-wrapper {
    background: rgba(31, 41, 55, 0.6);
    border-color: rgba(55, 65, 81, 0.5);
  }
  
  .enterprise-clocks {
    display: flex;
    align-items: center;
    gap: 0.875rem;
  }
  
  .enterprise-clocks .header-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
  
  .enterprise-clocks .header-clock-canvas {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .enterprise-clocks .header-clock-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .dark .enterprise-clocks .header-clock-label {
    color: #9ca3af;
  }
  
  /* Weather Button - Blue gradient style like demo.html */
  .enterprise-weather-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .enterprise-weather-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  }
  
  .enterprise-weather-btn i {
    font-size: 1.125rem;
  }
  
  .enterprise-weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    align-items: flex-start;
  }
  
  .enterprise-weather-location {
    font-size: 0.625rem;
    opacity: 0.9;
    line-height: 1.2;
  }
  
  .enterprise-weather-temp {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
  }
  
  /* Traffic Button - White/neutral style */
  .enterprise-traffic-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .dark .enterprise-traffic-btn {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
  }
  
  .enterprise-traffic-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
  }
  
  .dark .enterprise-traffic-btn:hover {
    border-color: #4b5563;
    background: #374151;
  }
  
  .enterprise-traffic-btn i {
    font-size: 1rem;
    color: #6b7280;
  }
  
  .dark .enterprise-traffic-btn i {
    color: #9ca3af;
  }
  
  /* Action Buttons - Icon-only simple style */
  .enterprise-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .enterprise-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .dark .enterprise-icon-btn {
    color: #9ca3af;
  }
  
  .enterprise-icon-btn i {
    font-size: 1rem;
  }
  
  .enterprise-icon-btn:hover {
    background: rgba(243, 244, 246, 0.8);
    color: #111827;
  }
  
  .dark .enterprise-icon-btn:hover {
    background: rgba(55, 65, 81, 0.8);
    color: #f9fafb;
  }
  
  /* Categories Row - Icon Only */
  .enterprise-categories-row {
    height: 3.25rem;
    padding: 0 2rem;
    border-top: 1px solid rgba(243, 244, 246, 0.5);
    background: rgba(255, 255, 255, 0.9);
  }
  
  .dark .enterprise-categories-row {
    border-top-color: rgba(55, 65, 81, 0.5);
    background: rgba(17, 24, 39, 0.9);
  }
  
  .enterprise-categories-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
  }
  
  /* Category Icons */
  .enterprise-category-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 244, 246, 0.6);
    border: 2px solid transparent;
    border-radius: 0.875rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
  }
  
  .dark .enterprise-category-icon {
    background: rgba(31, 41, 55, 0.6);
    color: #6b7280;
  }
  
  .enterprise-category-icon i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
  }
  
  .enterprise-category-icon:hover {
    background: rgba(229, 231, 235, 0.8);
    border-color: rgba(229, 231, 235, 0.6);
    color: #6b7280;
    transform: translateY(-2px);
  }
  
  .dark .enterprise-category-icon:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(55, 65, 81, 0.6);
    color: #d1d5db;
  }
  
  /* Active State */
  .enterprise-category-icon.category-btn.active {
    background: #5469ff;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84, 105, 255, 0.3);
  }
  
  .enterprise-category-icon.category-btn.active i {
    transform: scale(1.1);
  }
  
  .enterprise-category-icon.category-btn[data-category="Πολιτική"].active {
    background: var(--cat-politics);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .enterprise-category-icon.category-btn[data-category="Ελλάδα"].active {
    background: var(--cat-greece);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .enterprise-category-icon.category-btn[data-category="Αθλητικά"].active {
    background: var(--cat-sports);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .enterprise-category-icon.category-btn[data-category="Κόσμος"].active {
    background: var(--cat-world);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .enterprise-category-icon.category-btn[data-category="Lifestyle"].active {
    background: var(--cat-lifestyle);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .enterprise-category-icon.category-btn[data-category="Business"].active {
    background: var(--cat-business);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .enterprise-category-icon.category-btn[data-category="Τεχνολογία"].active {
    background: var(--cat-tech);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .enterprise-category-icon.category-btn[data-category="Education"].active {
    background: var(--cat-education);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Inactive/Deactivated State */
  .enterprise-category-icon.category-btn:not(.active) {
    opacity: 0.5;
  }
  
  .enterprise-category-icon.category-btn:not(.active):hover {
    opacity: 0.8;
  }
  
  /* Adjust sticky controls */
  .sticky-controls {
    top: 7.75rem;
  }
  
  /* Hide old header on desktop */
  .glass-header {
    display: none;
  }
  
  .nav-container {
    display: none;
  }
  
  .search-wrapper {
    display: none;
  }
}

/* Mobile: Hide enterprise header, show old header */
@media (max-width: 1023px) {
  .enterprise-header-desktop {
    display: none;
  }
  
  .glass-header {
    display: block;
  }
  
  .nav-container {
    display: block;
  }
  
  .search-wrapper {
    display: block;
  }
}

/* ====== PREMIUM DESKTOP DESIGN ====== */
/* Modern premium design based on demo.html - desktop only - Refined & Polished */

@media (min-width: 1024px) {
  /* Premium Header */
  .premium-header-desktop {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .dark .premium-header-desktop {
    background: rgba(17, 24, 39, 0.95);
    border-bottom-color: rgba(55, 65, 81, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .premium-glass-header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  
  /* Main Header Bar */
  .premium-header-main {
    height: 5rem;
    padding: 0 2rem;
  }
  
  .premium-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
  
  /* Logo Section */
  .premium-logo-section {
    flex-shrink: 0;
  }
  
  .premium-logo-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
  }
  
  .premium-logo-link:hover {
    transform: translateX(2px);
  }
  
  .premium-logo-icon-wrapper {
    position: relative;
    flex-shrink: 0;
  }
  
  .premium-logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #5469ff 0%, #3d4ff7 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(84, 105, 255, 0.2);
    transition: all 0.25s ease;
  }
  
  .premium-logo-link:hover .premium-logo-icon {
    box-shadow: 0 6px 16px rgba(84, 105, 255, 0.3);
    transform: translateY(-1px);
  }
  
  .premium-logo-icon i {
    font-size: 1.125rem;
    color: white;
  }
  
  .premium-live-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(34, 197, 94, 0.2);
    z-index: 10;
  }
  
  .dark .premium-live-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
  }
  
  .premium-live-dot {
    width: 0.375rem;
    height: 0.375rem;
    background: currentColor;
    border-radius: 50%;
    animation: pulse-slow 2s infinite;
  }
  
  .premium-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }
  
  .premium-logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
  }
  
  .dark .premium-logo-title {
    color: #f9fafb;
  }
  
  .premium-logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    margin: 0;
  }
  
  .dark .premium-logo-subtitle {
    color: #9ca3af;
  }
  
  /* Search Section */
  .premium-search-section {
    flex: 1;
    max-width: 36rem;
    margin: 0 auto;
  }
  
  .premium-search-container {
    position: relative;
    width: 100%;
  }
  
  .premium-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 2.75rem;
    background: #f3f4f6;
    border: 1.5px solid transparent;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s ease;
  }
  
  .premium-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
  }
  
  .dark .premium-search-input {
    background: #374151;
    color: #f9fafb;
  }
  
  .dark .premium-search-input::placeholder {
    color: #6b7280;
  }
  
  .premium-search-input:hover {
    background: #e5e7eb;
  }
  
  .dark .premium-search-input:hover {
    background: #4b5563;
  }
  
  .premium-search-input:focus {
    background: white;
    border-color: #5469ff;
    box-shadow: 0 0 0 3px rgba(84, 105, 255, 0.1);
    outline: none;
  }
  
  .dark .premium-search-input:focus {
    background: #4b5563;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  }
  
  .premium-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.2s ease;
    font-size: 0.875rem;
  }
  
  .premium-search-input:focus ~ .premium-search-icon {
    color: #5469ff;
  }
  
  /* Actions Section */
  .premium-actions-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Clocks */
  .premium-clocks-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
  }
  
  .dark .premium-clocks-wrapper {
    background: #1f2937;
    border-color: #374151;
  }
  
  .premium-clocks {
    display: flex;
    align-items: center;
    gap: 0.875rem;
  }
  
  .premium-clocks .header-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .premium-clocks .header-clock:hover {
    transform: translateY(-1px);
  }
  
  .premium-clocks .header-clock-canvas {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .premium-clocks .header-clock-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .dark .premium-clocks .header-clock-label {
    color: #9ca3af;
  }
  
  /* Weather Widget */
  .premium-weather-widget {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
  }
  
  .premium-weather-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
  }
  
  .premium-weather-widget i {
    font-size: 1.125rem;
  }
  
  .premium-weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }
  
  .premium-weather-location {
    font-size: 0.625rem;
    opacity: 0.9;
    line-height: 1.2;
    font-weight: 500;
  }
  
  .premium-weather-temp {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
  }
  
  /* Traffic Widget */
  .premium-traffic-widget {
    position: relative;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
  }
  
  .dark .premium-traffic-widget {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
  }
  
  .premium-traffic-widget:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
  }
  
  .dark .premium-traffic-widget:hover {
    border-color: #4b5563;
    background: #374151;
  }
  
  .premium-traffic-pulse {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
  }
  
  .dark .premium-traffic-pulse {
    border-color: #1f2937;
  }
  
  .premium-traffic-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #ef4444;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  
  @keyframes ping {
    75%, 100% {
      transform: translate(-50%, -50%) scale(2);
      opacity: 0;
    }
  }
  
  /* Action Buttons */
  .premium-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
  }
  
  .dark .premium-action-buttons {
    border-left-color: #374151;
  }
  
  .premium-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 1rem;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .dark .premium-action-btn {
    color: #9ca3af;
  }
  
  .premium-action-btn i {
    font-size: 1rem;
  }
  
  .premium-action-btn:hover {
    background: #f3f4f6;
    color: #111827;
  }
  
  .dark .premium-action-btn:hover {
    background: #374151;
    color: #f9fafb;
  }
  
  .premium-action-btn:has(.fa-arrows-rotate):hover i {
    animation: spin 0.5s ease;
  }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
  }
  
  /* Categories Bar */
  .premium-categories-bar {
    position: relative;
    padding: 0.875rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #f3f4f6;
  }
  
  .dark .premium-categories-bar {
    background: rgba(17, 24, 39, 0.98);
    border-top-color: #374151;
  }
  
  .premium-categories-bar::before,
  .premium-categories-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    pointer-events: none;
    z-index: 10;
  }
  
  .premium-categories-bar::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, transparent 100%);
  }
  
  .dark .premium-categories-bar::before {
    background: linear-gradient(to right, rgba(31,41,55,1) 0%, transparent 100%);
  }
  
  .premium-categories-bar::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, transparent 100%);
  }
  
  .dark .premium-categories-bar::after {
    background: linear-gradient(to left, rgba(31,41,55,1) 0%, transparent 100%);
  }
  
  .premium-categories-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
  }
  
  .premium-categories-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  
  .premium-categories-scroll::-webkit-scrollbar {
    display: none;
  }
  
  /* Category Pills */
  .premium-category-pill {
    position: relative;
    padding: 0.625rem 1.25rem;
    background: white;
    border-radius: 1.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  
  .dark .premium-category-pill {
    background: #1f2937;
    color: #9ca3af;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  
  .premium-category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
  }
  
  .dark .premium-category-pill:hover {
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .premium-category-pill.category-btn.active {
    background: #5469ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84, 105, 255, 0.3);
    border-color: transparent;
  }
  
  .premium-category-pill.category-btn[data-category="Πολιτική"].active {
    background: var(--cat-politics);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-pill.category-btn[data-category="Ελλάδα"].active {
    background: var(--cat-greece);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-pill.category-btn[data-category="Αθλητικά"].active {
    background: var(--cat-sports);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-pill.category-btn[data-category="Κόσμος"].active {
    background: var(--cat-world);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-pill.category-btn[data-category="Lifestyle"].active {
    background: var(--cat-lifestyle);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-pill.category-btn[data-category="Business"].active {
    background: var(--cat-business);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-pill.category-btn[data-category="Τεχνολογία"].active {
    background: var(--cat-tech);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-pill.category-btn[data-category="Education"].active {
    background: var(--cat-education);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .premium-category-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
  }
  
  .premium-category-pill.category-btn.active .premium-category-dot {
    background: white;
    opacity: 1;
    animation: pulse-slow 2s infinite;
  }
  
  .premium-category-icon {
    font-size: 0.75rem;
  }
  
  /* Adjust sticky controls */
  .sticky-controls {
    top: 9rem;
  }
  
  /* Hide old header on desktop */
  .glass-header {
    display: none;
  }
  
  .nav-container {
    display: none;
  }
  
  /* Hide search wrapper in sticky controls since we have it in header */
  .search-wrapper {
    display: none;
  }
}

/* Mobile: Hide premium header, show old header */
@media (max-width: 1023px) {
  .premium-header-desktop {
    display: none;
  }
  
  .glass-header {
    display: block;
  }
  
  .nav-container {
    display: block;
  }
  
  .search-wrapper {
    display: block;
  }
}

/* Hide world clocks on smaller screens */
@media (max-width: 1200px) {
  .header-clock-row {
    display: none !important;
  }
}

/* Large Screens */
@media (max-width: 1280px) {
  .content-with-sidebar {
    display: block;
    width: 100%;
  }
  
  .main-content-area {
    width: 100%;
    max-width: 100%;
  }
  
  #content-container {
    width: 100%;
    max-width: 100%;
  }
  
  .right-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 40;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
    width: 320px;
    height: 100vh;
    padding: 1rem;
  }
  
  .right-sidebar.open {
    transform: translateX(0);
  }
  

  
  #sources-breakdown-list {
    max-height: 250px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  /* Mobile-specific search positioning */
  .search-mobile-top {
    display: block;
    order: -1; /* Move to top */
  }

  .search-desktop-bottom {
    display: none;
  }

  /* Show smart mobile menu trigger */
  .mobile-bottom-menu-btn {
    display: flex !important;
  }

  /* Hide original mobile menu button (burger) */
  .mobile-menu-btn {
    display: none !important;
  }

  /* Header */
  .glass-header {
    padding: 0;
  }
  
  .glass-header .h-16 {
    height: 3.5rem;
  }
  
  /* Optimized logo layout for mobile - single row */
  .logo-wrapper {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
  }
  
  .logo-wrapper i {
    font-size: 0.875rem;
  }
  
  /* Logo text section - very compact for mobile */
  #logo-link h1.text-lg {
    font-size: 0.75rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-weight: 600 !important;
  }
  
  #logo-link p.text-xs {
    display: none !important; /* Hide subtitle on all mobile screens for single row */
  }
  
  /* Make logo section more compact */
  #logo-link div:not(.logo-wrapper) {
    min-width: 0;
    flex: 1;
    max-width: 80px; /* Limit width to prevent button cutoff */
  }
  
  /* BETA badge on mobile */
  .beta-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
    margin-top: -1px;
  }
  
  /* Ensure logo container has reduced gap */
  #logo-link.group {
    gap: 0.25rem !important;
  }
  
  /* Reduce the overall logo section width on mobile */
  .flex.items-center.gap-3:has(#logo-link) {
    gap: 0.25rem !important;
    flex-shrink: 0;
    max-width: 120px; /* Prevent logo from taking too much space */
  }
  
  /* Make sure buttons container doesn't get cut off */
  .flex.items-center.gap-2:last-child {
    flex-shrink: 0;
    min-width: 0;
  }
  
  .action-btn-text {
    display: none !important;
  }
  
  .action-btn {
    padding: 0.5rem;
    min-width: 40px;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  
  .action-btn i {
    font-size: 1.125rem;
  }
  
  #last-update-badge {
    display: none !important;
  }
  
  /* Categories - Enhanced Mobile */
  .sticky-controls {
    top: 3.5rem;
    display: flex;
    flex-direction: column;
  }

  /* Hide header navigation on mobile since we have bottom sheet menu */
  .nav-container {
    display: none;
  }

  .nav-menu {
    padding: 0;
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }

  .category-btn i {
    font-size: 0.875rem;
  }
  
  /* Sidebar */
  .right-sidebar {
    width: 100%;
    max-width: 400px;
    right: 0;
    left: auto;
  }
  
  /* Sidebar widgets responsive */
  .sidebar-widget {
    padding: 0.75rem;
  }
  
  .widget-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
  
  .widget-header h3 {
    font-size: 0.75rem;
  }
  
  /* Maps */
  #traffic-map,
  #weather-map {
    height: 450px;
    min-height: 400px;
  }
  
  .traffic-map-main {
    height: 60vh;
    min-height: 500px;
  }
  
  .traffic-header {
    padding: 16px 20px;
  }
  
  .traffic-header h2 {
    font-size: 20px;
  }
  
  .quick-nav-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .nav-search-container {
    padding: 12px 16px;
  }
  
  .nav-search-form {
    gap: 8px;
  }
  
  .nav-gps-button {
    min-width: 90px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .traffic-route-planner-container {
    margin-bottom: 20px;
  }
  
  .route-control-ui {
    padding: 16px;
    max-width: 100%;
  }
  
  .traffic-control-ui {
    min-width: 200px;
  }
  
  /* Weather Dashboard */
  .weather-dashboard-header {
    padding: 20px;
  }
  
  .weather-dashboard-title {
    font-size: 1.5rem;
  }
  
  .weather-controls-panel {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    padding: 20px;
  }
  
  .weather-view-toggles {
    justify-content: center;
  }
  
  .weather-view-container {
    padding: 20px;
  }
  
  .current-weather-info {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .current-weather-details {
    grid-template-columns: 1fr;
  }
  
  .current-temp {
    font-size: 2.8rem;
  }
  
  .current-weather-icon {
    font-size: 3rem;
  }
  
  .daily-item {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }
  
  .daily-info {
    justify-content: center;
  }
  
  .forecast-panel {
    padding: 20px;
  }
  
  .weather-map {
    height: 400px;
  }
  
  /* Modal adjustments */
  .feed-modal-container {
    width: 95%;
    max-height: 95vh;
    margin: 2.5vh auto;
  }
  
  .feed-modal-header {
    padding: 1rem;
  }
  
  .feed-modal-title {
    font-size: 1.25rem;
  }
  
  .feed-modal-body {
    padding: 1rem;
  }
  
  .external-form-container iframe {
    height: 500px !important;
  }
  
  /* Fix modal scrolling on mobile */
  .feed-modal-container {
    overflow: hidden;
  }
  
  .external-form-container {
    overflow: hidden;
  }
  
  /* Important article */
  .importance-badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
  }
  
  .trending-story-item {
    padding: 0.5rem;
  }
  
  .trending-rank {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* Show mobile menu */
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Hide desktop categories */
  .nav-container {
    display: none;
  }
  
  /* Sticky controls */
  .sticky-controls {
    padding: 0.75rem;
  }
  
  /* Articles */
  .article-list-item {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
  }
  
  .article-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9; /* Prevent layout shift */
    height: auto;
  }
  
  .article-content {
    padding: 0.75rem;
  }
  
  .article-title {
    font-size: 1rem; /* Maintain 16px for readability */
    line-height: 1.5;
  }
  
  .article-desc {
    font-size: 0.9375rem; /* Minimum readable size on mobile */
    -webkit-line-clamp: 3;
  }
  
  .article-meta {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }
  
  .publisher-logo {
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
  }
  
  /* Search - Enhanced Mobile */
  .search-wrapper {
    padding: 1rem;
  }

  .search-input {
    padding: 0.625rem 2.25rem;
    font-size: 0.8125rem;
  }
  
  /* Sidebar - Hidden on mobile, shown as overlay when needed */
  .right-sidebar {
    display: none;
  }
  
  .news-flow-card,
  .sidebar-widget {
    padding: 0.75rem;
  }
  
  .news-flow-header,
  .widget-header {
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
  }
  
  .news-flow-header h3,
  .widget-header h3 {
    font-size: 0.75rem;
  }
  
  .metric-row {
    padding: 0.375rem 0;
  }
  
  .metric-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
  }
  
  .metric-label {
    font-size: 0.625rem;
  }
  
  .metric-value {
    font-size: 0.75rem;
  }
  
  #cache-status-indicator {
    padding: 0.375rem 0.5rem;
    margin-top: 0.5rem;
  }
  
  #cache-status-text {
    font-size: 0.5625rem;
  }
  
  .cache-bar {
    height: 2px;
  }
  
  /* Widget specific mobile styles */
  .reading-metric-item {
    padding: 0.375rem;
  }
  
  .reading-metric-item .metric-label {
    font-size: 0.5625rem;
  }
  
  .reading-metric-item .metric-value {
    font-size: 0.7rem;
  }
  
  .reading-action-btn {
    font-size: 0.625rem;
    padding: 0.375rem;
  }
  
  .reminder-item {
    padding: 0.5rem;
    font-size: 0.65rem;
  }
  
  .velocity-section-title {
    font-size: 0.625rem;
  }
  
  .velocity-story-item {
    font-size: 0.625rem;
  }
  
  .exclusive-count {
    padding: 0.5rem;
  }
  
  .count-label {
    font-size: 0.65rem;
  }
  
  .count-value {
    font-size: 1rem;
  }
  
  /* Stats toggle */
  .stats-toggle-mobile {
    width: 3rem;
    height: 3rem;
    bottom: 1rem;
    right: 1rem;
  }
  
  /* Footer */
  footer {
    padding: 1.5rem 0;
  }
  
  .footer-logo-section img {
    height: 32px;
  }
  
  .footer-text {
    font-size: 0.75rem;
  }
  
  .footer-powered {
    font-size: 0.7rem;
    flex-wrap: wrap;
  }
  
  /* Maps */
  #traffic-map,
  #weather-map {
    height: 350px;
    min-height: 300px;
    border-radius: 0.75rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .traffic-map-main {
    height: 45vh;
    min-height: 350px;
  }
  
  .traffic-header {
    padding: 12px 16px;
  }
  
  .traffic-header h2 {
    font-size: 18px;
  }
  
  .traffic-action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .traffic-action-btn span {
    display: none;
  }
  
  .quick-nav-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .quick-nav-btn {
    padding: 12px 8px;
    min-height: 70px;
    font-size: 12px;
  }
  
  .quick-nav-btn i {
    font-size: 20px;
  }
  
  .nav-search-container {
    padding: 10px 12px;
  }
  
  .nav-search-form {
    flex-direction: row;
    gap: 8px;
  }
  
  .nav-search-autocomplete {
    padding: 8px 12px;
    font-size: 14px;
    min-height: 40px;
  }
  
  .nav-gps-button {
    min-width: 80px;
    padding: 8px 14px;
    font-size: 13px;
    min-height: 40px;
  }
  
  .nav-gps-button span {
    display: none;
  }
  
  .nav-gps-button i {
    font-size: 16px;
  }
  
  .traffic-route-planner-container {
    margin-bottom: 16px;
  }
  
  .route-control-ui {
    padding: 16px;
    max-width: 100%;
  }
  
  .route-actions {
    flex-direction: column;
  }
  
  .route-button-calculate {
    width: 100%;
    justify-content: center;
  }
  
  .route-summary {
    gap: 8px;
  }
  
  .route-stat {
    padding: 8px;
  }
  
  .route-stat-value {
    font-size: 14px;
  }
  
  .feed-modal-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
  }
  
  .feed-modal-header {
    padding: 1rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    flex-shrink: 0;
  }
  
  .dark .feed-modal-header {
    background: #1f2937;
  }
  
  .feed-modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .external-form-container {
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    overflow: hidden;
  }
  
  .external-form-container iframe {
    height: 100% !important;
    border-radius: 0;
    width: 100%;
    border: none;
  }
}

@media (max-width: 380px) {
  /* Header - Ultra compact for smallest screens */
  .logo-wrapper {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
  }
  
  .logo-wrapper i {
    font-size: 0.75rem;
  }
  
  #logo-link h1.text-lg {
    font-size: 0.6875rem !important; /* Even smaller for tiny screens */
    line-height: 1 !important;
    margin: 0 !important;
    font-weight: 600 !important;
  }
  
  #logo-link p.text-xs {
    display: none !important; /* Hide subtitle completely on very small screens */
  }
  
  /* Ensure logo container stays compact */
  #logo-link.group {
    gap: 0.25rem !important;
  }
  
  #logo-link div:not(.logo-wrapper) {
    min-width: 0;
    flex: 1;
    max-width: 70px; /* Even smaller limit for tiny screens */
  }
  
  /* BETA badge on very small screens */
  .beta-badge {
    font-size: 0.4375rem;
    padding: 1px 3px;
    margin-top: -1px;
  }
  
  /* Prevent logo section from taking too much space on tiny screens */
  .flex.items-center.gap-3:has(#logo-link) {
    max-width: 100px !important;
  }
  
  .action-btn {
    width: 44px; /* Maintain touch-friendly size */
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }
  
  .action-btn i {
    font-size: 1rem;
  }
  
  /* Categories - Maintain readability */
  .category-btn {
    padding: 0.75rem 0.875rem;
    min-height: 44px; /* Maintain touch-friendly size */
    font-size: 0.875rem; /* Minimum readable size */
  }
  
  /* Articles - Maintain readability */
  .article-image-wrapper {
    aspect-ratio: 16/9; /* Prevent layout shift */
    height: auto;
  }
  
  .article-title {
    font-size: 1rem; /* Maintain 16px for readability */
  }
  
  .article-desc {
    font-size: 0.9375rem; /* Minimum readable size */
    -webkit-line-clamp: 2;
  }
}

/* Mobile-specific search positioning */
.search-mobile-top {
  display: none;
}

.search-desktop-bottom {
  display: block;
}



/* Smart Mobile Menu Trigger */
/* Sticky Bottom Mobile Menu Button */
.mobile-bottom-menu-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  color: #374151;
  border: none;
  border-top: 1px solid #e5e7eb;
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  width: 100%;
}

.dark .mobile-bottom-menu-btn {
  background: #1f2937;
  color: #f3f4f6;
  border-top-color: #374151;
}

.mobile-bottom-menu-btn:hover {
  background: #f9fafb;
  color: #5469ff;
}

.dark .mobile-bottom-menu-btn:hover {
  background: #374151;
  color: #93c5fd;
}

.mobile-bottom-menu-btn i {
  font-size: 16px;
}

.mobile-bottom-menu-btn span {
  font-size: 14px;
}

/* Simple Smart Mobile Menu */
.mobile-bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-bottom-sheet.active {
  opacity: 1;
  pointer-events: all;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .mobile-bottom-sheet,
  .mobile-sheet-container,
  .category-nav-item,
  .quick-action-btn,
  .mobile-sheet-close {
    transition: none !important;
    animation: none !important;
  }
}

.mobile-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mobile-sheet-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  max-height: 90vh;
  height: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 100vw;
}

/* Responsive adjustments for different mobile screen sizes */
@media (max-height: 667px) {
  .mobile-sheet-container {
    max-height: 92vh;
  }
}

@media (max-height: 568px) {
  .mobile-sheet-container {
    max-height: 95vh;
  }
}

/* Full-screen on very small screens */
@media (max-width: 480px) {
  .mobile-sheet-container {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
}

/* Tablet sizes */
@media (min-width: 481px) and (max-width: 768px) {
  .mobile-sheet-container {
    max-height: 85vh;
  }
  
  .mobile-sheet-header {
    padding: 18px 20px;
  }
  
  .mobile-sheet-content {
    padding: 16px 20px;
  }
}

/* Very small screens - compact layout */
@media (max-width: 374px) {
  .mobile-sheet-header {
    padding: 14px;
  }
  
  .mobile-sheet-title {
    font-size: 16px;
  }
  
  .mobile-sheet-content {
    padding: 10px 14px;
  }
  
  .category-nav-item {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  .mobile-sheet-search {
    padding: 0 14px 14px;
  }
  
  .simple-search-input {
    font-size: 15px;
  }
}

.dark .mobile-sheet-container {
  background: #1f2937;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-sheet.active .mobile-sheet-container {
  transform: translateY(0);
}

/* Simple Handle */
.mobile-sheet-handle {
  padding: 12px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.mobile-sheet-handle:active {
  cursor: grabbing;
}

.handle-bar {
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.dark .handle-bar {
  background: #6b7280;
}

.mobile-sheet-handle:hover .handle-bar {
  width: 48px;
  background: #5469ff;
}

/* Simple Header */
.mobile-sheet-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dark .mobile-sheet-header {
  border-bottom-color: #374151;
}

.mobile-sheet-title {
  font-size: 18px; /* Increased from 15px */
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.4;
}

.dark .mobile-sheet-title {
  color: #f9fafb;
}

.mobile-sheet-close {
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  width: 48px; /* Increased from 32px for touch target */
  height: 48px; /* Increased from 32px for touch target */
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
}

.dark .mobile-sheet-close {
  background: #374151;
  color: #9ca3af;
}

.mobile-sheet-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.dark .mobile-sheet-close:hover {
  background: #4b5563;
  color: #d1d5db;
}

/* Quick Search */
.mobile-sheet-search {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.dark .mobile-sheet-search {
  border-bottom-color: #374151;
}

.simple-search-wrapper {
  display: flex;
  gap: 8px;
}

.simple-search-input {
  flex: 1;
  min-height: 48px; /* Touch-friendly target */
  font-size: 16px; /* Prevent zoom on iOS */
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.simple-search-input::placeholder {
  color: #9ca3af;
}

.simple-search-input:focus {
  outline: none;
  border-color: #5469ff;
  background: white;
}

.dark .simple-search-input {
  background: #374151;
  color: #f3f4f6;
  border-color: #4b5563;
}

.dark .simple-search-input::placeholder {
  color: #6b7280;
}

.dark .simple-search-input:focus {
  background: #4b5563;
  border-color: #5469ff;
}

.simple-search-btn {
  min-width: 48px;
  min-height: 48px; /* Touch-friendly target */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #5469ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
}

.simple-search-btn:hover {
  background: #3d4ff7;
}

/* Content - No scrolling, all visible */
.mobile-sheet-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Smart Category Navigation */
.smart-category-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
  width: 100%;
}

/* Responsive grid for different screen sizes */
@media (max-width: 360px) {
  .smart-category-nav {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .smart-category-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  min-height: 52px; /* Touch-friendly target */
  width: 100%;
  background: #f9fafb;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 16px; /* Readable font size */
  color: #111827;
}

.dark .category-nav-item {
  background: #374151;
}

.category-nav-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateX(2px);
}

.dark .category-nav-item:hover {
  background: #4b5563;
  border-color: #6b7280;
}

.category-nav-item.active {
  background: #f0f4ff;
  border-color: #5469ff;
}

.dark .category-nav-item.active {
  background: rgba(84, 105, 255, 0.1);
  border-color: #5469ff;
}

.category-nav-item .category-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-nav-item[data-category="Πολιτική"] .category-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.category-nav-item[data-category="Ελλάδα"] .category-icon {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.category-nav-item[data-category="Κόσμος"] .category-icon {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.category-nav-item[data-category="Αθλητικά"] .category-icon {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.category-nav-item[data-category="Business"] .category-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.category-nav-item[data-category="Τεχνολογία"] .category-icon {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
}

.category-nav-item[data-category="Lifestyle"] .category-icon {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.category-nav-item[data-category="Education"] .category-icon {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.category-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-name {
  font-size: 16px; /* Increased from 13px for readability */
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .category-name {
  color: #f9fafb;
}

.category-nav-item.active .category-name {
  color: #5469ff;
}

.category-count {
  background: #e5e7eb;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.dark .category-count {
  background: #1f2937;
  color: #9ca3af;
}

.category-nav-item.active .category-count {
  background: #5469ff;
  color: white;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  margin-top: auto;
}

.dark .quick-actions {
  border-top-color: #374151;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 8px;
  min-height: 48px; /* Touch-friendly target */
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: 16px; /* Base font size */
}

.dark .quick-action-btn {
  background: #374151;
  border-color: #4b5563;
}

.quick-action-btn:hover {
  background: #f3f4f6;
  border-color: #5469ff;
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.dark .quick-action-btn:hover {
  background: #4b5563;
}

.quick-action-btn i {
  font-size: 16px;
  color: #5469ff;
}

.quick-action-btn span {
  font-size: 14px; /* Increased from 10px for readability */
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}

.dark .quick-action-btn span {
  color: #9ca3af;
}

.quick-action-btn:hover span {
  color: #5469ff;
}

/* Pagination Styles */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 2.5rem;
  height: 2.5rem;
}

.dark .pagination-btn {
  color: #d1d5db;
  background: #1f2937;
  border-color: #4b5563;
}

.pagination-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #5469ff;
  color: #5469ff;
}

.dark .pagination-btn:hover:not(:disabled) {
  background: #374151;
  border-color: #5469ff;
  color: #5469ff;
}

.pagination-btn.active {
  background: #5469ff;
  border-color: #5469ff;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0 0.5rem;
  color: #6b7280;
  font-weight: 500;
}

.dark .pagination-ellipsis {
  color: #9ca3af;
}

.pagination-info {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.dark .pagination-info {
  color: #9ca3af;
}

@media (max-width: 640px) {
  .pagination-wrapper {
    gap: 0.25rem;
  }
  
  .pagination-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-width: 2.25rem;
    height: 2.25rem;
  }
}

/* Scrollbar */
.mobile-sheet-content::-webkit-scrollbar {
  width: 4px;
}

.mobile-sheet-content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-sheet-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.mobile-sheet-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Mobile-specific menu adjustments */
@media (max-width: 640px) {
  .mobile-sheet-container {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
  }
  
  .mobile-sheet-header {
    padding: 10px 14px;
  }
  
  .mobile-sheet-title {
    font-size: 16px; /* Maintain readability on small screens */
  }
  
  .mobile-sheet-search {
    padding: 8px 14px;
  }
  
  .mobile-sheet-content {
    padding: 10px 14px;
  }
  
  .category-nav-item {
    padding: 12px 12px; /* Maintain 48px min-height */
    min-height: 48px; /* Ensure touch-friendly on small screens */
  }
  
  .category-nav-item .category-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    margin-right: 8px;
  }
  
  .category-name {
    font-size: 16px; /* Maintain readability */
  }
  
  .quick-actions {
    gap: 6px;
    padding-top: 8px;
  }
  
  .quick-action-btn {
    padding: 12px 8px;
    min-height: 48px; /* Ensure touch-friendly on small screens */
  }
  
  .quick-action-btn i {
    font-size: 18px;
  }
  
  .quick-action-btn span {
    font-size: 13px; /* Maintain readability */
  }
}