/* Pulse-inspired styling for Chronos */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Purple gradient color scheme */
  --primary-purple: #7B3FF2;
  --secondary-purple: #9945FF;
  --accent-purple: #B794F6;
  --light-purple: rgba(123, 63, 242, 0.1);
  
  /* Glassmorphic elements */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  
  /* Background gradients */
  --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  
  /* Shadows */
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 12px 48px rgba(123, 63, 242, 0.15);
  --button-shadow: 0 4px 16px rgba(123, 63, 242, 0.3);
  
  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100vh;
  width: 100vw;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* Header styling - NEW TEMPLATE LAYOUT */
.header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  gap: 20px;
}

.header .logo {
  text-align: left;
  flex: 0 0 auto;
  z-index: 998;
}

.header .logo img {
  width: 300px;
  height: 60px;
  filter: drop-shadow(0 0 20px rgba(123, 63, 242, 0.3));
  transition: filter 0.3s ease;
}

.header .logo img:hover {
  filter: drop-shadow(0 0 30px rgba(123, 63, 242, 0.5));
}

/* Search bar styling */
.header .search-bar {
  flex: 1;
  text-align: right;
  margin-left: 5px;
  margin-top: 20px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 999;
}

.search-bar-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1;
  margin-left: 5px;
}

.search-bar form {
  display: flex;
  align-items: center;
  z-index: 999;
}

.search-bar input {
  width: 250px;
  height: 40px;
  font-size: 1em;
  padding: 0 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  z-index: 999;
}

.search-bar input:focus {
  outline: none;
  border: 1px solid var(--primary-purple);
  background: var(--glass-bg-hover);
  box-shadow: 0 0 20px rgba(123, 63, 242, 0.2);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  border: none;
  box-shadow: var(--button-shadow);
  width: 100px;
  height: 40px;
  font-size: 1em;
  margin-left: 10px;
  margin-right: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  color: white;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
}

.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 63, 242, 0.4);
}

/* Navigation buttons - LEFT ALIGNED */
.nav-buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  gap: 5px;
  flex: 0 0 auto;
}

/* Language navigation buttons container */
#language-nav-buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

#default-nav-buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.nav-button {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  display: inline-block;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  margin: 0 5px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.nav-button:hover {
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(123, 63, 242, 0.2);
}

.nav-button.active {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  border: 1px solid var(--primary-purple);
  box-shadow: var(--button-shadow);
}

.nav-button.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 63, 242, 0.4);
}

/* Hamburger menu button styling - EXACT SAME AS OTHER NAV BUTTONS */
.hamburger-button {
  /* Inherit all nav-button properties, no special display */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 12px;
}

.hamburger-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-primary);
  margin: 1px 0;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger-button:hover .hamburger-icon span {
  background: var(--text-primary);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Ticker styling - IMMEDIATE START */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 70px;
  left: 15%;
  width: 70%;
  z-index: 998;
  border-radius: 0 0 12px 12px;
  opacity: 1;
  visibility: visible;
  max-height: 50px;
}

.ticker {
  display: inline-block;
  padding-right: 50%;
  animation: ticker-scroll 60s linear infinite;
  animation-delay: 0s;
  animation-fill-mode: forwards;
  animation-play-state: running;
  transform: translateX(100%);
  will-change: transform;
}

/* Immediate start animation - faster and smoother */
@keyframes ticker-scroll {
  0% { 
    transform: translateX(100%); 
    opacity: 1;
  }
  2% {
    transform: translateX(95%);
    opacity: 1;
  }
  100% { 
    transform: translateX(-110%); 
    opacity: 1;
  }
}

#ticker-content {
  color: var(--text-primary);
  font-size: 16px;
  padding: 10px;
  font-weight: 500;
}

#ticker-content a {
  text-decoration: none;
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  margin: 0 8px;
  transition: all 0.3s ease;
  background: rgba(123, 63, 242, 0.1);
}

#ticker-content a:hover {
  background: rgba(123, 63, 242, 0.2);
  transform: translateY(-1px);
}

/* Main content layout - ABSOLUTE POSITIONING SYSTEM */
.main-content {
  position: relative;
  height: calc(100vh - 120px);
  margin-top: 100px;
  padding: 20px;
  overflow: hidden;
}

/* Recent news section (left column) - ABSOLUTE POSITIONING */
.recent-news-section {
  position: absolute;
  top: 0;
  left: 20px;
  width: 65%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Trending section (right column) - ABSOLUTE POSITIONING */
.trending-section {
  position: absolute;
  top: 0;
  right: 20px;
  width: 32%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--card-gradient);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.trending-header {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-align: center;
  letter-spacing: 1px;
}

.trending-content {
  flex: 1;
  overflow-y: visible;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trending-loading, .trending-error, .trending-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  font-style: italic;
  font-size: 14px;
}

.trending-error {
  color: rgba(239, 68, 68, 0.8);
}

.trending-category {
  margin-bottom: 20px;
}

.trending-category-header {
  color: var(--accent-purple);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(183, 148, 246, 0.2);
}

.trending-news-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trending-news-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 12px;
}

.trending-news-card:hover {
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123, 63, 242, 0.2);
}

.trending-news-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trending-news-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.trending-news-placeholder {
  width: 90px;
  height: 90px;
  background: var(--glass-bg);
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.trending-news-text {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}

.trending-news-channel {
  color: var(--accent-purple);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trending-news-time {
  color: var(--text-muted);
  font-size: 11px;
  margin: 0 0 6px 0;
}

.trending-news-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured news item (large) */
.featured-news-item {
  background: var(--card-gradient);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
}

.featured-news-item:hover {
  transform: translateY(-4px);
  border: 1px solid var(--glass-border-hover);
  background: var(--glass-bg-hover);
  box-shadow: var(--card-shadow-hover);
}

.featured-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-news-item:hover .featured-image {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(123, 63, 242, 0.1);
}

.featured-title {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin: 15px 0;
  line-height: 1.3;
}

/* Recent news grid (smaller items) - FIXED SCROLLABLE HEIGHT */
.recent-news-grid {
  flex: 1;
  overflow-y: visible;
  margin-top: 10px;
  padding-right: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.recent-news-item {
  background: var(--card-gradient);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: auto;
  min-height: 280px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease forwards;
}

.recent-news-item:hover {
  transform: translateY(-4px);
  border: 1px solid var(--glass-border-hover);
  background: var(--glass-bg-hover);
  box-shadow: 0 8px 24px rgba(123, 63, 242, 0.15);
}

.recent-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.recent-news-item:hover .recent-image {
  transform: scale(1.02);
}

.recent-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 0 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Legacy news cards for compatibility */
.news-item {
  background: var(--card-gradient);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
}

.news-item:hover {
  transform: translateY(-8px);
  border: 1px solid var(--glass-border-hover);
  background: var(--glass-bg-hover);
  box-shadow: var(--card-shadow-hover);
}

.news-item:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(123, 63, 242, 0.05) 0%, rgba(153, 69, 255, 0.05) 100%);
  border-radius: 16px;
  pointer-events: none;
}

.news-item h2 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  margin: 8px 0;
  line-height: 1.4;
}

.news-item p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  margin: 4px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

.news-item img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.news-item:hover img {
  transform: scale(1.02);
}

.news-item a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* News item content styling */
.news-channel {
  color: var(--accent-purple) !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.news-time {
  color: var(--text-muted) !important;
  font-size: 11px;
  font-weight: 400;
  margin: 0 0 8px 0;
}

/* Image styling within news cards */
.news-item img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-item:hover img {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(123, 63, 242, 0.1);
}

/* Loading state for images */
.news-item img[src=""] {
  display: none;
}

/* Responsive breakpoints */
@media(min-width: 1400px) {
  .news-item { width: calc(16.666% - 16px); }
}

@media(min-width: 1024px) and (max-width: 1399px) {
  .news-item { width: calc(20% - 16px); }
}

@media(min-width: 768px) and (max-width: 1023px) {
  .news-item { width: calc(33.333% - 16px); }
  .header .logo img { width: 250px; height: 50px; }
}

@media(min-width: 480px) and (max-width: 767px) {
  .news-item { width: calc(50% - 16px); }
  .header .logo img { width: 200px; height: 40px; }
  .search-bar input { width: 200px; }
}

@media(max-width: 479px) {
  .news-item { width: calc(100% - 16px); }
  .header .logo img { width: 150px; height: 30px; }
  .search-bar input { width: 150px; }
  .row { padding: 10px; }
}


/* Loading indicator */
#loading {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
}

/* Pulsing animation for auto-refresh */
@keyframes pulseAnimation {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.pulsing {
  animation: pulseAnimation 2s infinite;
}

/* Service status colors for health page */
.status-sleeping {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-outdated {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes pulseGreen {
  0% { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.3); }
  50% { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
  100% { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.3); }
}

.status-recent {
  animation: pulseGreen 3s infinite;
}

/* Separator styling */
.separator {
  width: 100%;
  margin: 20px 0;
}

.separator hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-purple), var(--accent-purple));
}

/* Focus states for accessibility */
*:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* Loading indicator for infinite scroll */
.loading-more-indicator {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  margin: 20px auto;
  color: var(--accent-purple);
  font-weight: 500;
  font-size: 14px;
}

/* Video Hover Preview Styles - YouTube-style */
.media-container {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 8px;
}

.media-container.has-video {
  cursor: pointer;
}

.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Video preview element - overlays on top of image */
.video-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: 2;
}

/* YouTube-style play badge */
.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Play triangle icon */
.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid white;
  margin-left: 4px;
}

/* Featured news item video container */
.featured-news-item .media-container {
  height: 300px;
}

.featured-news-item .video-play-badge {
  width: 64px;
  height: 64px;
}

.featured-news-item .play-icon {
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid white;
  margin-left: 6px;
}

/* Trending section video styles */
.trending-news-card .media-container {
  height: 90px;
  width: 90px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.trending-news-card .video-play-badge {
  width: 36px;
  height: 36px;
}

.trending-news-card .play-icon {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid white;
  margin-left: 2px;
}

/* Smooth transitions for hover effects */
.media-container img,
.media-container .video-preview,
.video-play-badge {
  transition: all 0.3s ease;
}

/* Hide play badge on hover when video plays */
.media-container:hover .video-play-badge {
  opacity: 0;
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-item:nth-child(even) {
  animation-delay: 0.1s;
}

.news-item:nth-child(3n) {
  animation-delay: 0.2s;
}

/* Enhanced topic linking and highlighting - from chronosframe.py pattern */
.topic-link {
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline;
}

.topic-link:hover .highlight {
  background: linear-gradient(135deg, var(--secondary-purple), var(--accent-purple));
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(123, 63, 242, 0.4);
}

.topic-link:hover {
  cursor: pointer;
}

/* Enhanced highlight styling for better visibility */
.highlight {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(20, 47, 141, 0.8), rgba(30, 58, 170, 0.8));
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: 1px solid rgba(123, 63, 242, 0.3);
  display: inline-block;
  margin: 1px 2px;
}

/* Hover effect for highlighted terms */
.highlight:hover {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  border-color: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(123, 63, 242, 0.3);
}

/* AI Overview specific styling enhancements */
.ai-overview-content .highlight {
  background: linear-gradient(135deg, rgba(123, 63, 242, 0.6), rgba(153, 69, 255, 0.6));
  color: white;
  border: 1px solid rgba(123, 63, 242, 0.5);
}

.transcribed-content .highlight {
  background: linear-gradient(135deg, rgba(20, 47, 141, 0.7), rgba(30, 58, 170, 0.7));
  color: white;
  border: 1px solid rgba(123, 63, 242, 0.4);
}

/* Ensure links within highlighted content maintain proper styling */
.ai-overview-content .topic-link .highlight,
.transcribed-content .topic-link .highlight {
  transition: all 0.3s ease;
}

.ai-overview-content .topic-link:hover .highlight,
.transcribed-content .topic-link:hover .highlight {
  background: linear-gradient(135deg, var(--secondary-purple), var(--accent-purple));
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(123, 63, 242, 0.5);
}
