/* ==========================================================================
   Virtual University (VU) Guide Space - Master Stylesheet
   Theme: VU Navy Blue, Electric Sky, Golden Amber with Glassmorphism
   Designed for cPanel File Manager Deployment (Pure CSS & Vanilla JS)
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* VU Brand Colors */
  --vu-primary: #002f5e;
  --vu-primary-light: #034687;
  --vu-secondary: #0ea5e9;
  --vu-accent: #f59e0b;
  --vu-accent-light: #fbbf24;

  /* Dark Theme (Default) */
  --bg-body: #060d17;
  --bg-card: rgba(15, 27, 45, 0.75);
  --bg-card-hover: rgba(22, 38, 62, 0.85);
  --bg-surface: #0b1524;
  --bg-input: rgba(18, 32, 53, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(14, 165, 233, 0.4);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --glow-primary: rgba(14, 165, 233, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  /* Badge Colors */
  --badge-obj-bg: rgba(16, 185, 129, 0.15);
  --badge-obj-text: #34d399;
  --badge-obj-border: rgba(16, 185, 129, 0.35);

  --badge-subj-bg: rgba(14, 165, 233, 0.15);
  --badge-subj-text: #38bdf8;
  --badge-subj-border: rgba(14, 165, 233, 0.35);

  --badge-proj-bg: rgba(168, 85, 247, 0.15);
  --badge-proj-text: #c084fc;
  --badge-proj-border: rgba(168, 85, 247, 0.35);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-body: #f4f7fb;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-surface: #ffffff;
  --bg-input: #ffffff;
  --border-subtle: rgba(203, 213, 225, 0.8);
  --border-active: rgba(2, 132, 199, 0.6);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --glow-primary: rgba(2, 132, 199, 0.15);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08);

  --badge-obj-bg: rgba(16, 185, 129, 0.12);
  --badge-obj-text: #059669;
  --badge-obj-border: rgba(16, 185, 129, 0.3);

  --badge-subj-bg: rgba(2, 132, 199, 0.12);
  --badge-subj-text: #0284c7;
  --badge-subj-border: rgba(2, 132, 199, 0.3);

  --badge-proj-bg: rgba(147, 51, 234, 0.12);
  --badge-proj-text: #7e22ce;
  --badge-proj-border: rgba(147, 51, 234, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmosphere Glows */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}
.orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
}
.orb-2 {
  width: 450px;
  height: 450px;
  top: 30%;
  right: -150px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
}
.orb-3 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: 30%;
  background: radial-gradient(circle, rgba(3, 70, 135, 0.2), transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 13, 23, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.85);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #002f5e 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text-wrap h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.brand-text-wrap h1 span.highlight {
  color: var(--vu-secondary);
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.btn-primary-sm {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.btn-primary-sm:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--vu-accent-light);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}
[data-theme="light"] .hero-pill {
  color: #b45309;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 2.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Stats Counter Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-card);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-blue { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.stat-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search Box Area */
.search-container {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  position: relative;
}
.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 2px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}
.search-wrapper:focus-within {
  border-color: var(--vu-secondary);
  box-shadow: 0 0 0 4px var(--glow-primary), 0 20px 35px -10px rgba(0, 0, 0, 0.4);
}
.search-icon {
  color: var(--vu-secondary);
  font-size: 1.25rem;
  margin-right: 0.75rem;
}
.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--text-main);
  padding: 0.5rem 0;
}
.search-input::placeholder {
  color: var(--text-dim);
}
.search-kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-right: 0.5rem;
  user-select: none;
}
.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.clear-search-btn:hover {
  color: var(--text-main);
}
.clear-search-btn.active {
  display: flex;
}

/* Filter Controls */
.filter-section {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.filter-pill.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.filter-pill .pill-count {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.category-tab {
  background: transparent;
  border: 1px dashed var(--border-subtle);
  color: var(--text-dim);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.category-tab:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}
.category-tab.active {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--vu-secondary);
  border-style: solid;
  color: var(--vu-secondary);
}

/* Results Status Bar */
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}
.results-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.results-count span {
  color: var(--vu-secondary);
  font-weight: 700;
}
.view-toggles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Subjects Grid */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

/* Subject Card */
.subject-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.subject-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}
.subject-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.code-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.subject-code {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}
[data-theme="light"] .subject-code {
  color: #0f172a;
}

.favorite-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 1.15rem;
  padding: 0.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.favorite-btn:hover {
  color: #fbbf24;
  transform: scale(1.15);
}
.favorite-btn.saved {
  color: #fbbf24;
}

/* Pattern Badge */
.pattern-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-objective {
  background: var(--badge-obj-bg);
  color: var(--badge-obj-text);
  border: 1px solid var(--badge-obj-border);
}
.badge-subjective {
  background: var(--badge-subj-bg);
  color: var(--badge-subj-text);
  border: 1px solid var(--badge-subj-border);
}
.badge-project {
  background: var(--badge-proj-bg);
  color: var(--badge-proj-text);
  border: 1px solid var(--badge-proj-border);
}

.subject-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.subject-category-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.subject-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.15rem;
}
[data-theme="light"] .subject-note {
  background: rgba(0, 0, 0, 0.02);
}

/* Lectures Section inside Card */
.lectures-box {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}
.lectures-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vu-accent-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
[data-theme="light"] .lectures-heading {
  color: #d97706;
}

.channels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.channel-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.btn-yt-watch {
  flex: 1;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-yt-watch:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn-copy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-copy-card:hover {
  color: var(--text-main);
  border-color: var(--border-active);
}

/* No Results State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px dashed var(--border-subtle);
}
.no-results-icon {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.no-results h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.no-results p {
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto 1.5rem;
}

/* Quick Information / Exam Guide Section */
.guide-banner {
  background: linear-gradient(135deg, rgba(2, 47, 94, 0.6) 0%, rgba(14, 165, 233, 0.15) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 24px;
  padding: 2.25rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.guide-banner-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.guide-text h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.guide-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.guide-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.guide-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
}
.guide-points li span.icon {
  color: var(--vu-secondary);
}

.guide-box-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.guide-box-visual h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vu-accent-light);
}
.pattern-comparison-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.comp-item {
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}
.comp-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.comp-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: 22px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.modal-close-btn:hover {
  color: var(--text-main);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid var(--vu-secondary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--vu-secondary);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Search Highlights */
mark.search-highlight {
  background: rgba(245, 158, 11, 0.35);
  color: #fff;
  padding: 0 2px;
  border-radius: 3px;
}
[data-theme="light"] mark.search-highlight {
  background: rgba(245, 158, 11, 0.3);
  color: #000;
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .guide-banner-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .search-wrapper {
    padding: 0.4rem 0.6rem 0.4rem 0.9rem;
  }
  .search-kbd {
    display: none;
  }
  .subjects-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 1rem;
  }
  .filter-pill {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }
}
