/* Custom styles beyond Tailwind - Educational Repository */
:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --accent: #059669;
  --accent-hover: #047857;
  --cta: #ea580c;
  --cta-hover: #c2410c;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
}

/* Sidebar */
.sidebar {
  transition: transform 0.3s ease-in-out;
}

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

@media (min-width: 1024px) {
  .sidebar-closed {
    transform: translateX(0);
  }
}

/* Reading content */
.prose-edu h1, .prose-edu h2, .prose-edu h3 {
  color: var(--primary-dark);
  font-weight: 700;
}

.prose-edu a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-edu a:hover {
  color: var(--primary-dark);
}

/* Cards */
.card-level {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-level:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgb(30 64 175 / 0.25);
}

/* Resource cards */
.resource-card {
  border-left: 4px solid var(--primary);
}

.resource-card.pdf {
  border-left-color: #dc2626;
}

.resource-card.exam {
  border-left-color: #d97706;
}

.resource-card.key {
  border-left-color: var(--accent);
}

/* Language toggle */
.lang-btn.active {
  background-color: var(--primary);
  color: white;
}

/* Breadcrumb */
.breadcrumb a:hover {
  color: var(--primary);
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile nav overlay */
.nav-overlay {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  .prose-edu {
    font-size: 12pt;
  }
}
