/* ===== Verdis Search — Core Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
  --verdis-green: #1a9e2c;
  --verdis-green-dark: #158a24;
  --verdis-green-light: #e8f5e9;
  --verdis-green-hover: #178c26;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-tertiary: #6e6e8a;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-tertiary: #eef0f4;
  --border-light: #e2e5ea;
  --border-medium: #d0d4dc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --mark-bg: #d4d4d8;
  --mark-color: #18181b;
}

mark {
  background: var(--mark-bg);
  color: var(--mark-color);
  padding: 0 2px;
  border-radius: 2px;
}

[data-theme="dark"] {
  --verdis-green: #2ecc40;
  --verdis-green-dark: #27ae35;
  --verdis-green-light: #1a2e1d;
  --verdis-green-hover: #32d94a;
  --text-primary: #e8e8f0;
  --text-secondary: #b0b0c8;
  --text-tertiary: #80809a;
  --bg-primary: #121218;
  --bg-secondary: #1a1a24;
  --bg-tertiary: #242432;
  --border-light: #2a2a3a;
  --border-medium: #363648;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --mark-bg: #40404a;
  --mark-color: #f4f4f5;
}

[data-theme="dark"] .result-title a {
  color: #8ab4f8;
}

[data-theme="dark"] .result-title a:hover {
  color: #aecbfa;
}

[data-theme="dark"] .summary-box {
  background: linear-gradient(135deg, #1a2e1d, #162618);
  border-color: rgba(46,204,64,0.25);
}

[data-theme="dark"] .verdis-insight {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .search-form {
  background: var(--bg-secondary);
}

[data-theme="dark"] .search-input {
  color: var(--text-primary);
}

[data-theme="dark"] .image-card {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

[data-theme="dark"] .video-card {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

[data-theme="dark"] .suggestion-item:hover,
[data-theme="dark"] .suggestion-item.active {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .nav-link:hover {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .privacy-banner {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

[data-theme="dark"] .results-sidebar > div {
  background: var(--bg-secondary) !important;
  border-color: var(--border-light) !important;
}

[data-theme="dark"] .kbd {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .no-results-icon {
  opacity: 0.8;
}

[data-theme="dark"] a {
  color: var(--verdis-green);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Focus & Accessibility ===== */
:focus-visible {
  outline: 2px solid var(--verdis-green);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--verdis-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* ===== Homepage ===== */
.homepage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.home-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border-light);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--verdis-green);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-btn {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link-btn:hover {
  color: var(--verdis-green);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--verdis-green);
}

.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 32px;
}

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

.logo-container img {
  height: 80px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ===== Search Bar ===== */
.search-container {
  width: 100%;
  max-width: 620px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 6px 8px 6px 20px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form:focus-within {
  border-color: var(--verdis-green);
  box-shadow: 0 0 0 3px rgba(26,158,44,0.12);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: transparent;
  padding: 10px 8px;
}

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

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--verdis-green);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--verdis-green-dark);
  transform: scale(1.05);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
  overflow: hidden;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-item:hover, .suggestion-item.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.suggestion-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ===== Home Footer ===== */
.home-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left, .footer-right {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-right a {
  color: var(--verdis-green);
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* ===== Results Page ===== */
.results-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.results-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.results-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.results-search-form {
  flex: 1;
  max-width: 560px;
}

.results-search-form .search-form {
  padding: 4px 6px 4px 16px;
  border-radius: var(--radius-lg);
}

.results-search-form .search-input {
  font-size: 0.9rem;
  padding: 8px 6px;
}

.results-search-form .search-btn {
  width: 36px;
  height: 36px;
}

.results-search-form .search-btn svg {
  width: 16px;
  height: 16px;
}

.results-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--verdis-green);
  background: var(--verdis-green-light);
  font-weight: 600;
}

.nav-link svg {
  width: 16px;
  height: 16px;
}

/* ===== Results Body ===== */
.results-body {
  flex: 1;
  display: flex;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  gap: 32px;
}

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

.results-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ===== Search Stats ===== */
.search-stats {
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ===== Summary Box ===== */
.summary-box {
  background: linear-gradient(135deg, var(--verdis-green-light), #f0faf1);
  border: 1px solid rgba(26,158,44,0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--verdis-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-label svg {
  width: 16px;
  height: 16px;
}

.summary-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 12px;
}

.summary-source {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.summary-source a {
  color: var(--verdis-green);
  text-decoration: none;
  font-weight: 500;
}

.summary-source a:hover {
  text-decoration: underline;
}

/* ===== Result Card ===== */
.result-card {
  margin-bottom: 24px;
  max-width: 100%;
}

.result-url {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-url .favicon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.result-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-title a {
  color: #1a0dab;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.result-title a:hover {
  text-decoration: underline;
  color: #1a0dab;
}

.result-snippet {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Result Body Layout ===== */
.result-body-row {
  display: flex;
  gap: 16px;
}

.result-text-col {
  flex: 1;
  min-width: 0;
}

.result-thumb {
  flex-shrink: 0;
  width: 116px;
  height: 87px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary);
  align-self: flex-start;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Live Badge ===== */
.live-badge {
  display: inline-block;
  background: var(--verdis-green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 4px;
}

/* ===== Video Thumbnail Placeholder ===== */
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  font-size: 2rem;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

/* ===== Image Placeholder ===== */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-tertiary);
  border-radius: 8px;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.result-snippet b, .result-snippet strong {
  color: var(--text-primary);
  font-weight: 600;
}

.result-meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.result-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Verdis Insight ===== */
.verdis-insight {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--verdis-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease;
  padding: 0 14px;
  margin-top: 0;
}

.result-card:hover .verdis-insight,
.result-card:focus-within .verdis-insight {
  max-height: 200px;
  opacity: 1;
  padding: 10px 14px;
  margin-top: 8px;
}

.insight-title {
  font-weight: 600;
  color: var(--verdis-green);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.insight-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.insight-icon.check { color: var(--verdis-green); }
.insight-icon.clock { color: #f59e0b; }
.insight-icon.info { color: #3b82f6; }

/* ===== Image Results ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.image-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.image-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.image-card-info {
  padding: 10px;
}

.image-card-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-card-source {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* ===== Video Results ===== */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}

.video-card:hover {
  box-shadow: var(--shadow-md);
}

.video-thumbnail {
  width: 200px;
  height: 112px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.video-thumb-wrapper {
  position: relative;
  width: 200px;
  height: 112px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.video-thumb-wrapper .video-thumbnail {
  width: 100%;
  height: 100%;
}

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.video-source {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.video-duration {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

/* ===== Error / No Results ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.no-results h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.suggestions-list {
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.suggestions-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 6px;
  list-style: disc;
  margin-left: 20px;
}

/* ===== Loading ===== */
.loading {
  display: none;
  text-align: center;
  padding: 40px;
}

.loading.active {
  display: block;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--verdis-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

.loading-text {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ===== Image Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-info {
  text-align: center;
  margin-top: 16px;
  color: #fff;
}

.lightbox-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lightbox-source {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.lightbox-source a {
  color: #7dd3a8;
  text-decoration: none;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
}

/* ===== Privacy Banner ===== */
.privacy-banner {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 12px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.privacy-banner a {
  color: var(--verdis-green);
  text-decoration: none;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .home-nav {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .logo-container img {
    height: 56px;
    max-width: 260px;
  }

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

  .home-footer {
    flex-direction: column;
    text-align: center;
  }

  .results-header {
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .results-logo {
    display: none;
  }

  .results-search-form {
    flex: 1;
    min-width: 0;
  }

  .results-nav {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding: 4px 0;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .results-body {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .results-sidebar {
    width: 100%;
    order: -1;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .video-card {
    flex-direction: column;
  }

  .video-thumbnail {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .logo-container img {
    height: 44px;
    max-width: 200px;
  }

  .search-form {
    padding: 4px 6px 4px 14px;
  }

  .search-input {
    font-size: 0.9rem;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  animation: fadeInUp 0.3s ease forwards;
}

.result-card:nth-child(1) { animation-delay: 0.02s; }
.result-card:nth-child(2) { animation-delay: 0.06s; }
.result-card:nth-child(3) { animation-delay: 0.10s; }
.result-card:nth-child(4) { animation-delay: 0.14s; }
.result-card:nth-child(5) { animation-delay: 0.18s; }

/* ===== Print ===== */
@media print {
  .results-header, .results-sidebar, .search-container, .home-nav, .home-footer {
    display: none !important;
  }

  .results-body {
    padding: 0;
  }

  .result-card {
    page-break-inside: avoid;
  }
}

/* ===== Filter Toggle ===== */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.filter-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--verdis-green);
  border-color: var(--verdis-green);
}

.filter-toggle.active {
  background: var(--verdis-green);
  color: #fff;
  border-color: var(--verdis-green);
}

.filter-toggle svg {
  width: 18px;
  height: 18px;
}

/* ===== Dark Mode Toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--verdis-green);
  border-color: var(--verdis-green);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon {
  display: inline;
}

/* ===== Info Pages (About, Privacy, Explore) ===== */
.info-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.info-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  flex: 1;
}

.info-content h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.info-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.info-section {
  margin-bottom: 36px;
}

.info-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.info-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.info-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.info-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.info-section li strong {
  color: var(--text-primary);
}

/* ===== Explore Grid ===== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.explore-card {
  display: block;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.explore-card:hover {
  border-color: var(--verdis-green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.explore-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.explore-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.explore-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ===== Code Block ===== */
.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 16px 0;
}

[data-theme="dark"] .code-block {
  background: #1a1a24;
  border-color: #2a2a3a;
}
