@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Deep Space Theme */
  --bg-space: #050505;
  --bg-asteroid: #0a0a0a;
  --bg-deep: #000000;
  
  /* Text */
  --text-bright: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Brand Accents - Preserved but refined */
  --accent-teal: #10b981;
  --accent-blue: #3b82f6;
  --accent-glow: rgba(16, 185, 129, 0.4);
  
  /* Glassmorphism 2.0 */
  --glass-panel: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --backdrop-blur: 16px;
  
  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Metrics */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Legacy Aliases (Fix for broken backgrounds) */
  --bg-primary: var(--bg-space);
  --bg-secondary: var(--bg-asteroid);
  --bg-tertiary: var(--bg-deep);
  --text-primary: var(--text-bright);
  --text-secondary: var(--text-dim);
  --text-tertiary: var(--text-muted);
  --glass-bg: var(--glass-panel);
}

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

body, button, input, textarea, select {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-space);
  color: var(--text-bright);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Film Grain / Noise Texture */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.glass-panel {
  background: var(--glass-panel);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hidden {
  display: none !important;
}

/* Landing Page */
.landing-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.landing-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.landing-content {
  text-align: center;
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.landing-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 auto 0.5rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  display: block;
  pointer-events: auto;
  position: relative;
  z-index: 10;
  text-align: center;
}

.landing-title:hover {
  color: var(--accent-teal);
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.landing-title:active {
  transform: scale(0.98);
}

.landing-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0 auto 3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
}

.search-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Ensure form inherits search-container styles */
#landingSearchForm.search-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Ensure form doesn't have default form styling */
#landingSearchForm {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 100%;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.search-suggestions.hidden {
  display: none;
}

.search-suggestions-list {
  padding: 0.5rem;
}

.search-suggestion-item {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.search-suggestion-item.selected {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-teal);
}

.search-suggestion-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.search-suggestion-text {
  flex: 1;
}

.search-suggestion-highlight {
  color: var(--accent-teal);
  font-weight: 600;
}

.landing-search {
  width: 100%;
  padding: 1.5rem 4rem 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.landing-search::placeholder {
  color: transparent;
}

.landing-search:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.landing-search:focus + .typewriter-placeholder {
  opacity: 0;
  pointer-events: none;
}

.typewriter-placeholder {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 1.1rem;
  color: var(--text-tertiary);
  opacity: 0.5;
  white-space: nowrap;
}

.typewriter-text {
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--text-tertiary);
  margin-left: 2px;
  animation: blink 1s infinite;
  opacity: 0.7;
}

@keyframes blink {
  0%,
  50% {
    opacity: 0.7;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.search-button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-teal);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: #059669;
  transform: translateY(-50%) scale(1.05);
}

.landing-tagline {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

/* Discovery Page */
.discovery-page {
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
}

/* Hero Section */
.hero-section {
  margin-left: 320px;
  padding: 4rem 2rem 3rem;
  background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.05), transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05), transparent 60%);
  border-bottom: 1px solid var(--border-color);
  transition: margin-left 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  min-height: 500px; /* Ensure space for globe */
}

.hero-globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 10;
  pointer-events: none; /* Let clicks pass to globe in empty spaces */
}

.hero-content > * {
  pointer-events: auto; /* Re-enable for children */
}

.hero-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.hero-title-section {
  text-align: center;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-title-highlight {
  color: var(--accent-teal);
  background: linear-gradient(135deg, var(--accent-teal), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.hero-search-section {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.hero-search-wrapper {
  width: 100%;
  max-width: 700px;
  position: relative;
}

.hero-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search-icon {
  position: absolute;
  left: 1.5rem;
  color: var(--text-tertiary);
  pointer-events: none;
  z-index: 1;
}

.hero-search-input {
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; /* More rounded */
  color: var(--text-bright);
  font-size: 1.15rem;
  font-family: var(--font-body);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-search-input::placeholder {
  color: transparent;
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: rgba(16, 185, 129, 0.05); /* Slight teal tint */
  box-shadow: 0 0 0 1px var(--accent-teal), 0 10px 40px -10px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.hero-search-input:focus + .hero-typewriter-placeholder {
  opacity: 0;
  pointer-events: none;
}

.hero-typewriter-placeholder {
  position: absolute;
  left: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-tertiary);
  opacity: 0.7;
  font-size: 1.1rem;
  font-family: "Inter", sans-serif;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-typewriter-text {
  font-family: "Inter", sans-serif;
}

.hero-typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--text-tertiary);
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.hero-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

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

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
}

/* Global Navigation - REMOVED */

/* Data Archive Sidebar */
.data-archive-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.85); /* Deep semi-transparent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  z-index: 100;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.data-archive-sidebar.collapsed {
  transform: translateX(calc(-100% + 64px));
  width: 64px;
}

/* Restore the sibling selector for layout adjustment */
.data-archive-sidebar.collapsed ~ .hero-section,
.data-archive-sidebar.collapsed ~ .hero-section ~ .discovery-main {
  margin-left: 64px;
}

.data-archive-sidebar.collapsed .archive-content {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out;
  overflow: visible;
}

.data-archive-sidebar.collapsed .archive-list,
.data-archive-sidebar.collapsed .archive-empty,
.data-archive-sidebar.collapsed .history-expand-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.data-archive-sidebar.collapsed .sidebar-nav,
.data-archive-sidebar.collapsed .sidebar-category-filters {
  opacity: 1;
  pointer-events: auto;
}

.data-archive-sidebar.collapsed .archive-header {
  padding: 0;
  border: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  min-height: 60px;
}

.data-archive-sidebar.collapsed .archive-title {
  display: none;
}

.data-archive-sidebar.collapsed .nexus-refresh-btn {
  display: none;
}

.data-archive-sidebar.collapsed .archive-toggle {
  position: relative;
  width: 64px;
  height: 60px;
  min-width: 64px;
  min-height: 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 8px 8px 0;
  margin: 0;
  padding: 0;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
  z-index: 102;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.data-archive-sidebar.collapsed .archive-toggle:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-teal);
}

.data-archive-sidebar.collapsed .archive-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
  stroke: currentColor;
  fill: none;
  opacity: 1;
  display: block;
}

.archive-toggle svg {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
  color: var(--text-primary);
  stroke: currentColor;
  fill: none;
  opacity: 1;
  display: block;
}

.archive-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.archive-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.archive-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.data-archive-sidebar.collapsed .archive-toggle:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-teal);
}

.archive-toggle:hover svg {
  color: var(--text-primary);
  opacity: 1;
  stroke: currentColor;
}

.archive-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.nexus-refresh-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.nexus-refresh-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-teal);
}

.nexus-refresh-btn:active {
  transform: scale(0.98);
}

.archive-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.archive-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
}

.archive-tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.archive-tab:hover {
  color: var(--text-primary);
}

.archive-tab.active {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}

.archive-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.archive-section {
  display: flex;
  flex-direction: column;
}

.archive-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.archive-section-title .section-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.archive-section-title .section-title-text {
  transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
}

.data-archive-sidebar.collapsed .archive-section-title .section-title-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.data-archive-sidebar.collapsed .archive-section-title {
  justify-content: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Sidebar Navigation Styles */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-nav-tab {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-nav-tab svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-nav-tab .nav-tab-label {
  transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
}

.data-archive-sidebar.collapsed .sidebar-nav-tab {
  justify-content: center;
  padding: 0.75rem;
}

.data-archive-sidebar.collapsed .sidebar-nav-tab .nav-tab-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-nav-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-nav-tab.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.sidebar-category-filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-category-filter-btn {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-category-filter-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-category-filter-btn .category-filter-label {
  transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
}

.data-archive-sidebar.collapsed .sidebar-category-filter-btn {
  justify-content: center;
  padding: 0.6rem;
}

.data-archive-sidebar.collapsed
  .sidebar-category-filter-btn
  .category-filter-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-category-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-category-filter-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.archive-list {
  flex: 1;
  overflow-y: visible;
  padding: 0;
  min-height: 0;
}

.archive-list:not(.expanded) .archive-item:nth-child(n + 6) {
  display: none;
}

.history-expand-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.history-expand-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.history-chevron {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.history-date {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.archive-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-tertiary);
}

.archive-empty p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.archive-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.archive-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.archive-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-item-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-item-remove {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.archive-item-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Compact styling for saved articles in sidebar */
.archive-item-compact {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}

.archive-item-compact .archive-item-title {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.archive-item-compact .archive-item-meta {
  font-size: 0.7rem;
}

.archive-item-compact .archive-item-remove {
  padding: 0.2rem;
}

.archive-item-compact .archive-item-remove svg {
  width: 10px;
  height: 10px;
}

/* Make Saved Articles header clickable */
.archive-section-title {
  cursor: pointer;
  transition: color 0.2s ease;
}

.archive-section-title:hover {
  color: var(--accent-teal);
}

/* Discovery Header - REMOVED (replaced by hero section) */

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.discovery-nav-container {
  position: relative;
}

.nav-toggle-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.nav-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-chevron {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.discovery-header.nav-collapsed .nav-chevron {
  transform: rotate(180deg);
}

.nav-content-wrapper {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.discovery-header.nav-collapsed .nav-content-wrapper {
  max-height: 0;
  padding: 0;
}

.discovery-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Discovery Search Bar */
.discovery-search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.discovery-search-input-wrapper {
  position: relative;
  flex: 1;
}

.discovery-search {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.discovery-search::placeholder {
  color: var(--text-tertiary);
}

.discovery-search:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.discovery-search-button {
  background: var(--accent-teal);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.discovery-search-button:hover {
  background: #059669;
  transform: scale(1.05);
}

/* Search suggestions for discovery page */
.discovery-search-input-wrapper .search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 1000;
}

.discovery-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: -1px;
}

.nav-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab.active {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}

.nav-tab svg {
  opacity: 0.6;
}

/* Category Filters */
.category-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.category-filter-btn {
  padding: 0.5rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.category-filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.category-filter-btn.active {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* Discovery Main */
.discovery-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  padding-left: calc(320px + 2rem);
  transition: padding-left 0.3s ease-in-out;
}

.data-archive-sidebar.collapsed ~ .discovery-main {
  padding-left: calc(64px + 2rem);
}

.data-archive-sidebar.collapsed ~ .hero-section ~ .discovery-main {
  padding-left: calc(64px + 2rem);
}

.discovery-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Collapsible AI Briefing */
.ai-briefing-container {
  margin-bottom: 2rem;
  margin-top: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.ai-briefing-toggle {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.ai-briefing-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.briefing-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.briefing-label::before {
  content: "📡";
  font-size: 1rem;
  margin-right: 0.25rem;
}

.briefing-chevron {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.ai-briefing-container.expanded .briefing-chevron {
  transform: rotate(180deg);
}

.ai-briefing-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}

.ai-briefing-container.expanded .ai-briefing-content {
  max-height: 2000px;
  padding: 1.5rem;
}

/* Featured Article */
.featured-article {
  margin-bottom: 0;
}

.featured-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.featured-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.featured-headline {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.featured-meta svg {
  width: 16px;
  height: 16px;
}

.featured-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-sources {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.featured-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* News Grid */
.news-grid-container {
  margin-top: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

/* News Card - Glassmorphism */
.news-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.news-card-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.news-card-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.source-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
}

.news-card-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-card-time svg {
  width: 14px;
  height: 14px;
}

.summarize-btn {
  flex: 1.5;
  padding: 0.75rem 1rem;
  /* Syrian Green Gradient (Deep Emerald) */
  background: linear-gradient(135deg, #104F36 0%, #0B3D29 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff; /* White text for clarity */
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(16, 79, 54, 0.4);
}

.summarize-btn:hover {
  background: linear-gradient(135deg, #156645 0%, #104F36 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 79, 54, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.news-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: stretch;
}

.card-action-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.card-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.card-action-btn.saved {
  color: var(--accent-teal);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.card-action-btn.liked {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.card-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 79, 54, 0.2);
  border-top-color: #104F36;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 1.5rem auto;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #104F36, #0B3D29);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 400px;
  margin: 0.5rem auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.progress-info span {
  font-weight: 500;
}

#progressPercentage {
  color: var(--accent-teal);
  font-weight: 600;
}

.progress-sources {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

#sourcesScanned {
  color: var(--accent-teal);
  font-weight: 600;
}

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

/* Summary Modal */
.summary-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.modal-body {
  line-height: 1.8;
  color: var(--text-secondary);
}

.summary-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.summary-key-points {
  list-style: none;
  margin-top: 1.5rem;
}

.summary-key-points li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.summary-key-points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

.summary-placeholder {
  text-align: center;
  padding: 3rem 1rem;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-teal);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Reader Modal */
.reader-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.reader-content {
  width: 90%;
  height: 90%;
  max-width: 1000px;
  max-height: 90vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-asteroid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: var(--text-bright);
  overflow: hidden;
  position: relative;
}

.reader-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-panel);
  backdrop-filter: blur(20px);
}

.reader-source {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.reader-source-label {
  color: var(--text-tertiary);
}

.reader-source-domain {
  color: var(--accent-teal);
  font-weight: 600;
}

.reader-external-link {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.reader-external-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.reader-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 300;
  line-height: 1;
  position: relative; /* Ensure z-index works */
  z-index: 2002; /* Higher than modal content */
  pointer-events: auto; /* Force clickable */
}

.reader-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  transform: scale(1.1);
}

.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  line-height: 1.8;
}

.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-secondary);
}

.reader-article {
  max-width: 700px;
  margin: 0 auto;
}

.reader-article img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

.reader-article h1,
.reader-article h2,
.reader-article h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.reader-article h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.reader-article h2 {
  font-size: 2rem;
}

.reader-article h3 {
  font-size: 1.5rem;
}

.reader-article p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.reader-article a {
  color: var(--accent-teal);
  text-decoration: underline;
}

.reader-article blockquote {
  border-left: 4px solid var(--accent-teal);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Interview Prep Button */
.interview-prep-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: var(--accent-teal);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.interview-prep-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-teal);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.interview-prep-btn svg {
  flex-shrink: 0;
}

/* Interview Prep Page (Full page route) */
.interview-prep-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.interview-prep-page.hidden {
  display: none;
}

.interview-prep-container {
  background: var(--bg-primary);
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

.interview-prep-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.interview-prep-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.interview-prep-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-teal);
}

/* Controls Toggle Button */
.controls-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.controls-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.controls-toggle-btn svg {
  transition: transform 0.2s ease;
}

.controls-toggle-btn.collapsed svg {
  transform: rotate(180deg);
}

/* Collapsible Controls */
.collapsible-controls {
  transition: all 0.3s ease;
  overflow: hidden;
}

.collapsible-controls.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* Mode Selector */
.mode-selector-container {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
}

.mode-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.mode-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.mode-btn svg {
  flex-shrink: 0;
}

/* Interview Prep Content - Split Layout */
.interview-prep-content {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  scroll-behavior: smooth;
}

/* Question section on left */
.interview-prep-content > .question-section {
  flex: 1;
  min-width: 0;
}

/* Answer section on right */
.interview-prep-content > .answer-section {
  flex: 1;
  min-width: 0;
}

/* Mobile responsive - stack vertically */
@media (max-width: 900px) {
  .interview-prep-content {
    flex-direction: column;
  }
}

.interview-prep-content::-webkit-scrollbar {
  width: 8px;
}

.interview-prep-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.interview-prep-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.interview-prep-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chat Interface */
.chat-interface {
  flex: 1;
  min-height: 200px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  max-height: 400px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-welcome {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--text-primary);
}

.chat-welcome p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.chat-message {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: var(--text-primary);
  line-height: 1.6;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

.chat-message p {
  margin: 0.5rem 0;
}

.chat-message p:first-child {
  margin-top: 0;
}

.chat-message p:last-child {
  margin-bottom: 0;
}

.chat-message.bot {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  align-self: flex-start;
  max-width: 75%;
}

.chat-message.user {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  align-self: flex-end;
  max-width: 75%;
  margin-left: auto;
}

/* Question Display */
.question-display {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  animation: fadeIn 0.4s ease;
}

.question-display.hidden {
  display: none;
}

.question-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: fit-content;
}

.question-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  letter-spacing: -0.02em;
}

.question-context {
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.repeat-question-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.repeat-question-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

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

.repeat-question-btn svg {
  flex-shrink: 0;
}

/* Answer Section */
.answer-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease;
}

.answer-section.hidden {
  display: none;
}

.answer-input {
  width: 100%;
  padding: 1.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  min-height: 180px;
  max-height: 400px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.answer-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.answer-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

.answer-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.answer-submit-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--accent-teal), #059669);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.answer-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.answer-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.answer-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.answer-skip-btn {
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.answer-skip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Grading Feedback */
.grading-feedback {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.grading-feedback.hidden {
  display: none;
}

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

.feedback-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.overall-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-teal);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.dimension-score {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dimension-score:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dimension-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: capitalize;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.dimension-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 1rem;
  display: block;
}

.dimension-feedback {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feedback-summary {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.strengths-section,
.improvements-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
}

.strengths-section h4,
.improvements-section h4 {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.strengths-section ul,
.improvements-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.strengths-section li,
.improvements-section li {
  padding: 1rem 0 1rem 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.strengths-section li:last-child,
.improvements-section li:last-child {
  border-bottom: none;
}

.strengths-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 800;
  font-size: 1.2rem;
  top: 1rem;
}

.improvements-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  top: 1rem;
}

.reddit-insights {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  grid-column: 1 / -1;
}

.reddit-insights strong {
  color: var(--text-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.feedback-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.next-question-btn,
.close-feedback-btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.next-question-btn {
  background: linear-gradient(135deg, var(--accent-teal), #059669);
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.next-question-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

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

.close-feedback-btn {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text-secondary);
}

.close-feedback-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* MMI Toggle Container */
.mmi-toggle-container {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(16, 185, 129, 0.05);
}

.mmi-toggle-wrapper {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.mmi-toggle-btn {
  padding: 0.625rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.mmi-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.mmi-toggle-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* MMI Mode Selector */
.mmi-mode-selector-container {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(139, 92, 246, 0.05);
}

.mmi-mode-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.mmi-station-counter {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple);
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
}

.mmi-mode-buttons {
  display: flex;
  gap: 0.75rem;
}

.mmi-mode-btn {
  padding: 0.625rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.mmi-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.mmi-mode-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* CanMEDS Role Badges in Feedback */
.dimension-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.dimension-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dimension-name {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.dimension-score {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  min-width: 50px;
  text-align: center;
}

.dimension-score.high {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-teal);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.dimension-score.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.dimension-score.low {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.dimension-feedback {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.dimension-feedback strong {
  color: var(--accent-purple);
  font-weight: 700;
}

/* MMI Video Recording Styles */
.mmi-video-interface {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-mode-toggle {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.video-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.video-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.video-mode-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.video-recording-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-preview-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

#videoPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}

.recording-dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.recording-text {
  color: white;
}

.video-timer {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.video-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.video-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.video-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-btn.start-recording-btn {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.video-btn.start-recording-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.video-btn.stop-recording-btn {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: white;
}

.video-btn.submit-video-btn {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.video-btn.submit-video-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.video-status {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem;
  min-height: 1.5rem;
}

.mmi-text-input {
  margin-top: 1rem;
}

/* Video Insights Section */
.video-insights-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.video-insights-section h4 {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.video-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-insight-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.video-insight-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-insight-card h5 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.75rem;
}

.video-insight-card div {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.video-playback-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.video-playback-container h5 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

#recordedVideoPlayback {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  background: #000;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  .data-archive-sidebar.collapsed ~ .hero-section {
    margin-left: 0;
  }

  .discovery-main {
    padding-left: 2rem;
  }

  .data-archive-sidebar {
    transform: translateX(-100%);
  }

  .data-archive-sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .feedback-summary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .question-display,
  .grading-feedback {
    padding: 1.75rem;
  }

  .interview-prep-content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .reader-content {
    padding: 0;
  }

  .reader-header {
    padding: 1rem;
  }

  .reader-body {
    padding: 1rem;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-search-input {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

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

  .discovery-main {
    padding: 1rem;
  }

  .featured-headline {
    font-size: 1.75rem;
  }
}

/* ========== 3D Globe Toggle FAB ========== */
.globe-fab {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 10;
}

.globe-fab:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.globe-fab.active {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent-blue);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.globe-icon {
  transition: transform 0.3s ease;
}

.globe-fab:hover .globe-icon {
  transform: rotate(15deg);
}

.globe-fab svg {
  flex-shrink: 0;
}

/* Globe View Container */
.globe-view-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--bg-primary);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.globe-view-container:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

#globeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.globe-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

.globe-close-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.globe-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Cross-fade transition for news grid */
.news-grid-container {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.news-grid-container.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ========== MMI Mode Selection Modal ========== */
.mmi-mode-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.mmi-mode-selection-modal .modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mmi-mode-selection-modal h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.mmi-mode-selection-modal .modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.mode-selection-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mode-option-btn {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
}

.mode-option-btn:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.mode-option-btn svg {
  width: 48px;
  height: 48px;
  stroke-width: 2;
}

.mode-option-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.mode-option-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ========== MMI Reading Phase ========== */
.mmi-reading-phase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.reading-phase-content {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid var(--accent-blue);
  border-radius: 20px;
  padding: 3rem;
  min-width: 400px;
}

.reading-timer-display {
  margin-bottom: 2rem;
}

.reading-timer-display .timer-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reading-timer-display .timer-value {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: "JetBrains Mono", monospace;
}

.reading-instruction {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== MMI Response Timer ========== */
.mmi-response-timer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent-teal);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  animation: slideIn 0.3s ease;
}

.response-timer-display .timer-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.response-timer-display .timer-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-teal);
  font-family: "JetBrains Mono", monospace;
}

/* Disabled input state */
.answer-input.disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== Country News Panel ========== */
.country-news-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.country-news-panel:not(.hidden) {
  transform: translateX(0);
}

.country-news-panel.collapsed {
  transform: translateX(100%) !important;
}

.country-news-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.country-news-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.country-news-title #countryNameDisplay {
  color: var(--accent-blue);
}

.country-news-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.country-news-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
}

.country-news-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.country-news-content {
  padding: 2rem;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
  min-height: 400px;
}

/* Lottie Loader Container */
#lottieLoader {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.3)); /* Glow effect */
}

/* Old Spinner (Keep as fallback if needed, or remove) */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-teal);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1.5rem;
  display: none; /* Hidden by default now */
}

#loadingText {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.country-news-empty,
.country-news-error {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.country-news-empty-subtitle,
.country-news-error-subtitle {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.country-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.country-news-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.country-news-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.country-news-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.country-news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.country-news-card:hover .country-news-card-image img {
  transform: scale(1.05);
}

.country-news-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.country-news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.country-news-card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.country-news-card-source {
  font-weight: 500;
  color: var(--accent-teal);
}

.country-news-card-date {
  opacity: 0.7;
}

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

/* Responsive design for country news panel */
@media (max-width: 768px) {
  .country-news-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .country-news-header {
    padding: 1.5rem;
  }

  .country-news-title h2 {
    font-size: 1.5rem;
  }

  .country-news-content {
    padding: 1.5rem;
  }

  .country-news-card-image {
    height: 150px;
  }
}

/* Infinite Scroll - Loading More Spinner */
.load-more-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.load-more-spinner.active {
  opacity: 1;
  transform: translateY(0);
}

.load-more-spinner p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin: 0;
}

.load-more-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 79, 54, 0.2);
  border-top-color: #104F36;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Scroll Sentinel (invisible trigger element) */
#scrollSentinel {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  opacity: 0;
}

/* ========== Mobile Optimizations ========== */

/* Performance hints */
.data-archive-sidebar {
  will-change: transform;
}

.sidebar-backdrop {
  will-change: opacity;
}

.news-card {
  will-change: transform;
}

/* Touch device fixes - remove hover transforms, add tap feedback */
@media (hover: none) {
  .news-card:hover {
    transform: none;
  }

  .summarize-btn:hover {
    transform: none;
  }

  .featured-card:hover {
    transform: none;
  }

  .card-action-btn:hover {
    transform: none;
  }

  .news-card:active {
    transform: scale(0.98);
  }

  .summarize-btn:active {
    opacity: 0.7;
  }

  .featured-card:active {
    transform: scale(0.98);
  }

  .card-action-btn:active {
    opacity: 0.7;
  }
}

/* Mobile sidebar drawer */
@media (max-width: 768px) {
  .data-archive-sidebar {
    width: 280px;
    z-index: 1001;
  }

  .data-archive-sidebar.collapsed {
    transform: translateX(-100%);
    width: 280px;
  }

  .data-archive-sidebar.collapsed ~ .hero-section,
  .data-archive-sidebar.collapsed ~ .hero-section ~ .discovery-main {
    margin-left: 0;
    padding-left: 1rem;
  }

  .hero-section {
    margin-left: 0 !important;
    padding-left: 1rem !important;
  }

  .discovery-main {
    margin-left: 0 !important;
  }

  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  /* Touch target sizes */
  .card-action-btn {
    min-height: 44px;
  }

  .summarize-btn {
    min-height: 44px;
  }

  .modal-close {
    width: 44px;
    height: 44px;
  }

  .source-logo {
    width: 24px;
    height: 24px;
  }

  .news-card-time svg {
    width: 18px;
    height: 18px;
  }

  .card-action-btn svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-category-filter-btn {
    min-height: 44px;
  }

  .sidebar-nav-tab {
    min-height: 44px;
  }

  /* Card layout optimization */
  .news-card-content {
    padding: 1rem;
  }

  .news-card-headline {
    font-size: 1.1rem;
  }

  .news-card-image {
    height: 180px;
  }

  .featured-card {
    padding: 1rem;
    gap: 1rem;
  }

  .featured-image {
    height: 200px;
  }

  /* Modal fixes for virtual keyboard */
  .summary-modal {
    align-items: flex-start;
    padding: 0;
  }

  .summary-modal .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .reader-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .mmi-mode-selection-modal .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

/* Small phone breakpoint */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-search-input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 0.9rem;
  }

  .news-card-content {
    padding: 0.875rem;
  }

  .news-card-headline {
    font-size: 1rem;
  }

  .news-card-image {
    height: 160px;
  }

  .featured-card {
    padding: 0.75rem;
  }

  .featured-headline {
    font-size: 1.3rem;
  }

  .discovery-main {
    padding: 0.75rem;
  }

  .interview-prep-btn span {
    display: none;
  }
}
