/* ============================================
   Curso de Inglês - Foco Irlanda
   Design System: Verde Irlandês + Laranja
   ============================================ */

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo-flag { font-size: 1.5rem; }
.logo-text span { color: var(--green-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

.nav-user {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

.logout-form { display: inline; }

/**
 * Elegant Course Dropdown
 */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.nav-dropdown-toggle:hover {
  color: var(--green-600);
}

.nav-dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.nav-dropdown-item:hover {
  background: var(--gray-50);
}

.nav-dropdown-item.is-active {
  background: var(--green-50);
}

.nav-dropdown-flag {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 0.5rem;
}

.nav-dropdown-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.nav-dropdown-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

.nav-dropdown-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-check {
  color: var(--green-600);
  flex-shrink: 0;
  margin-left: 0.25rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}

.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover { background: var(--gray-200); }

.btn-outline {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover { border-color: var(--green-500); color: var(--green-600); }

.btn-success {
  background: var(--green-500);
  color: var(--white);
}

.btn-success:hover { background: var(--green-600); }

.btn-small { padding: 0.375rem 0.875rem; font-size: 0.875rem; }
.btn-large { padding: 0.875rem 2rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 50%, var(--green-600) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .highlight { color: #86efac; }

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
}

.stat {
  font-size: 0.9375rem;
  opacity: 0.85;
}

/* ============================================
   LEVELS
   ============================================ */
.levels-section { padding: 4rem 0; }
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--gray-900);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.level-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.level-info{
  margin-left: 20px;
}

.level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
}

.level-card-accent {
  width: 5px;
  background: var(--card-color);
  flex-shrink: 0;
  transition: width 0.3s;
}

.level-card:hover .level-card-accent {
  width: 7px;
}

.level-card-inner {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.level-card-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}

.level-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.level-card-head {
  min-width: 0;
}

.level-card-code {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.125rem;
}

.level-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--gray-900);
  line-height: 1.2;
}

.level-card-en {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 0.625rem;
}

.level-card-desc {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.level-card-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
}

.stat-pill svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.level-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  border-top: 1px solid var(--gray-100);
}

.level-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color 0.2s;
}

.level-card:hover .level-card-cta {
  color: var(--card-color);
}

.level-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-50);
  transition: all 0.25s;
}

.level-card:hover .level-card-arrow {
  background: var(--card-color);
  color: white !important;
  transform: translateX(3px);
}

/* ============================================
   FEATURES
   ============================================ */
.features-section {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--gray-200);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* ============================================
   AUTH
   ============================================ */
.auth-section {
  padding: 4rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-500);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.auth-footer a { color: var(--green-600); font-weight: 600; }

.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ============================================
   LEVEL PAGE
   ============================================ */
.level-header {
  background: var(--level-color);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.level-badge-large {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.level-header h1 { font-size: 2.5rem; font-weight: 800; }
.level-subtitle { opacity: 0.9; margin-top: 0.5rem; }

.themes-section { padding: 3rem 0; }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.theme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

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

.theme-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.theme-header h3 { font-size: 1.25rem; font-weight: 700; }
.theme-duration { font-size: 0.8125rem; color: var(--gray-400); }
.theme-title-en { color: var(--gray-400); font-size: 0.9375rem; margin-bottom: 1rem; }

.theme-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: var(--green-100); color: var(--green-700); }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ============================================
   CONTENT
   ============================================ */
.content-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}

.back-link {
  display: inline-block;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.back-link:hover { color: var(--green-600); }

.content-header h1 { font-size: 2rem; font-weight: 700; }
.content-subtitle { color: var(--gray-400); font-size: 1rem; }

.content-body { padding: 2.5rem 0; }

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.content-intro {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.content-section { margin-bottom: 2.5rem; }
.content-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.vocab-item {
  background: var(--gray-50);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--green-500);
}

.vocab-word { font-weight: 700; font-size: 1.0625rem; }
.vocab-translation { color: var(--gray-500); font-size: 0.9375rem; margin: 0.25rem 0; }
.vocab-example { color: var(--gray-400); font-size: 0.875rem; font-style: italic; }

.grammar-item { margin-bottom: 1.5rem; }
.grammar-item h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.grammar-explanation { color: var(--gray-600); margin-bottom: 0.75rem; }

.grammar-examples { display: flex; flex-direction: column; gap: 0.5rem; }
.example-box {
  background: var(--green-50);
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.irish-context {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.irish-context h2 { color: #92400e; }
.irish-context p { color: #78350f; }

.content-cta {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}

/* ============================================
   QUIZ
   ============================================ */
.quiz-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  position: sticky;
  top: 57px;
  z-index: 50;
}

.quiz-header h1 { font-size: 1.5rem; font-weight: 700; }

.quiz-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 999px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-body { padding: 2rem 0 4rem; }

.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.question-number {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 1rem;
}

.question-text {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-size: 1rem;
}

.option-btn:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}

.option-btn.selected {
  border-color: var(--green-600);
  background: var(--green-50);
}

.option-btn.correct {
  border-color: var(--green-500);
  background: #f0fdf4;
}

.option-btn.incorrect {
  border-color: #ef4444;
  background: #fef2f2;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.option-btn.selected .option-letter,
.option-btn.correct .option-letter {
  background: var(--green-600);
  color: var(--white);
}

.option-btn.incorrect .option-letter {
  background: #ef4444;
  color: var(--white);
}

.explanation-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--green-500);
}

.explanation-content {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.irish-note {
  font-size: 0.875rem;
  color: var(--orange-600);
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray-200);
}

.quiz-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================
   RESULT
   ============================================ */
.result-section {
  padding: 4rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.result-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.result-card h1 { font-size: 2rem; margin-bottom: 1.5rem; }

.score-display { margin: 2rem 0; }

.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--green-500) calc(var(--score) * 1%), var(--gray-200) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--white);
  border-radius: 50%;
}

.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gray-900);
  position: relative;
  z-index: 1;
}

.score-label {
  font-size: 1rem;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
}

.result-detail { font-size: 1.125rem; color: var(--gray-600); margin-bottom: 1.5rem; }

.result-message { padding: 1.5rem; border-radius: var(--radius); margin-bottom: 2rem; }
.result-message.success { background: #f0fdf4; color: var(--green-800); }
.result-message.warning { background: #fffbeb; color: #92400e; }
.result-message.info { background: #eff6ff; color: #1e40af; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  padding: 3rem 0;
}

.dashboard-header h1 { font-size: 2rem; font-weight: 700; }
.dashboard-header p { opacity: 0.9; margin-top: 0.5rem; }

.dashboard-stats { padding: 2rem 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-600);
}

.stat-card .stat-label {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.dashboard-progress, .dashboard-history { padding: 2rem 0; }

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-item {
  display: grid;
  grid-template-columns: 1fr 2fr 80px 120px auto;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.progress-level {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--green-600);
}

.progress-bar-inline {
  height: 8px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill-inline {
  height: 100%;
  background: var(--green-500);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-score { font-weight: 700; text-align: right; }
.progress-attempts { color: var(--gray-400); font-size: 0.875rem; }

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.history-table-wrapper { overflow-x: auto; }

.history-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.history-table th,
.history-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.history-table th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.score-cell { font-weight: 700; }
.score-cell.pass { color: var(--green-600); }
.score-cell.ok { color: var(--orange-600); }
.score-cell.fail { color: #ef4444; }

/* ============================================
   IRISH-ENGLISH PAGE
   ============================================ */
.irish-hero {
  background: linear-gradient(135deg, #166534 0%, #15803d 50%, #ea580c 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.irish-hero h1 { font-size: 3rem; font-weight: 800; }
.irish-subtitle { font-size: 1.125rem; opacity: 0.9; max-width: 600px; margin: 1rem auto 0; }

.irish-content { padding: 3rem 0; }

.irish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.irish-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.irish-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--green-700);
}

.irish-expressions { display: flex; flex-direction: column; gap: 0.875rem; }

.expr-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.expr-phrase { font-weight: 600; color: var(--gray-800); }
.expr-meaning { color: var(--gray-500); font-size: 0.9375rem; }

.grammar-list { display: flex; flex-direction: column; gap: 1.25rem; }

.grammar-item h4 { font-size: 1rem; font-weight: 600; color: var(--green-700); margin-bottom: 0.375rem; }
.grammar-item p { color: var(--gray-600); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.grammar-item .example {
  background: var(--green-50);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.irish-cta { text-align: center; margin-top: 3rem; }

/* ============================================
   ERROR PAGES
   ============================================ */
.error-section {
  padding: 5rem 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-card { max-width: 400px; margin: 0 auto; }
.error-card h1 { font-size: 4rem; font-weight: 800; color: var(--gray-300); }
.error-card p { color: var(--gray-500); margin: 1rem 0 2rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9375rem;
}

.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--green-600); text-decoration: none; font-weight: 500; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .levels-grid { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: 1fr; }
  .irish-grid { grid-template-columns: 1fr; }
  .progress-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .quiz-header { position: relative; top: 0; }
  .question-card { padding: 1.5rem; }
  .result-card { padding: 2rem 1.5rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.875rem; }
}


/* ============================================
   LESSON PAGE - Premium Content Design System
   ============================================ */

/* --- CSS Custom Properties por nível --- */
.lesson-hero {
  --h-color: var(--level-color, #059669);
  --h-light: var(--level-light, #ecfdf5);
  --h-border: var(--level-border, #10b981);
}

/* ============================================
   LESSON HERO
   ============================================ */
.lesson-hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}

.lesson-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #14b8a6 100%);
  z-index: -2;
}

.lesson-hero-bg.from-sky-700 { background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #3b82f6 100%); }
.lesson-hero-bg.from-amber-600 { background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%); }
.lesson-hero-bg.from-violet-700 { background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #c026d3 100%); }

.lesson-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
  z-index: -1;
}

.lesson-hero-inner {
  position: relative;
  z-index: 1;
  color: white;
}

.lesson-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.lesson-back:hover { color: white; }
.lesson-back svg { flex-shrink: 0; }

.lesson-hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.level-pill {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.25);
}

.theme-number {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 500;
}

.lesson-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lesson-subtitle {
  font-size: 1.125rem;
  opacity: 0.85;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.lesson-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
   LESSON BODY & GRID
   ============================================ */
.lesson-body {
  padding: 2.5rem 0 4rem;
  background: var(--gray-50);
}

.lesson-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.lesson-main {
  min-width: 0;
}

.lesson-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.15s;
}

.toc-link:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.toc-link.active {
  background: var(--h-light, #ecfdf5);
  color: var(--h-color, #059669);
  font-weight: 600;
}

.toc-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}

.toc-link.active .toc-count {
  background: rgba(5,150,105,0.15);
  color: var(--h-color, #059669);
}

/* level-card styles are defined earlier in the file */

.level-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.level-info-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-info-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.tip-card {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.tip-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tip-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.375rem;
}

.tip-text {
  font-size: 0.8125rem;
  color: #a16207;
  line-height: 1.5;
}

/* ============================================
   LESSON SECTIONS
   ============================================ */
.lesson-section {
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--h-color, #059669);
  background: var(--h-light, #ecfdf5);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.section-badge svg { flex-shrink: 0; }

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

.section-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-400);
  background: white;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.intro-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.intro-content p {
  margin-bottom: 1rem;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

.intro-content strong {
  color: var(--gray-800);
  font-weight: 700;
}

.intro-content ul,
.intro-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.intro-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.intro-content ul li::marker {
  color: var(--h-color, #059669);
}

/* ============================================
   BREADCRUMB NAV
   ============================================ */
.breadcrumb-nav {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 0.75rem 0;
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.breadcrumb-nav li:not(:last-child)::after {
  content: '/';
  color: var(--gray-300);
  margin-left: 0.25rem;
}

.breadcrumb-nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.breadcrumb-nav a:hover {
  color: var(--h-color, #059669);
}

.breadcrumb-nav [aria-current="page"] {
  color: var(--gray-800);
  font-weight: 600;
}

/* ============================================
   VOCABULARY DECK
   ============================================ */
.vocab-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.vocab-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.vocab-card {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 3rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.vocab-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--h-color, #059669);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0.6;
  transition: width 0.25s, opacity 0.25s;
}

.vocab-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12);
  border-color: var(--h-color, #059669);
}

.vocab-card:hover::before {
  width: 5px;
  opacity: 1;
}

.vocab-card-num {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--gray-300);
  letter-spacing: 0.05em;
  font-family: 'SF Mono', monospace;
}

.vocab-card-word {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.vocab-card-trans {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 0.625rem;
  font-weight: 500;
}

.vocab-card-ex {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-style: italic;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.vocab-card-ex svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  opacity: 0.5;
}

/* ============================================
   GRAMMAR STACK
   ============================================ */
.grammar-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.grammar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grammar-card {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.grammar-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.08);
}

.grammar-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem 0.75rem;
  background: white;
}

.grammar-card-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--h-color, #059669);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.125rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.grammar-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin: 0;
}

.grammar-card-explanation {
  padding: 0 1.5rem 1rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  border-bottom: 1px dashed var(--gray-200);
}

.grammar-examples {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.grammar-example-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--h-light, #ecfdf5);
  border: 1px solid rgba(5,150,105,0.1);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  transition: transform 0.15s;
}

.grammar-example-item:hover {
  transform: translateX(4px);
}

.example-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--h-color, #059669);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.example-text {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.55;
  font-weight: 500;
}

/* ============================================
   IRISH CONTEXT
   ============================================ */
.irish-section {
  position: relative;
}

.irish-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(245,158,11,0.2);
}

.irish-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.irish-shamrock {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.irish-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.irish-sub {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin: 0.125rem 0 0;
  color: rgba(255,255,255,0.9);
}

.irish-card-body {
  padding: 1.75rem 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #78350f;
}

.irish-card-body p {
  margin-bottom: 1rem;
}

.irish-card-body p:last-child {
  margin-bottom: 0;
}

.irish-card-body strong {
  color: #92400e;
  font-weight: 700;
}

.irish-card-body a {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.irish-card-body a:hover {
  color: #78350f;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  margin-top: 3rem;
}

.cta-card {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1f2937 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--h-color, #059669), var(--h-border, #10b981));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: white;
  box-shadow: 0 8px 24px rgba(5,150,105,0.3);
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.cta-desc {
  font-size: 0.9375rem;
  color: var(--gray-400);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, var(--h-color, #059669), var(--h-border, #10b981));
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.4);
  color: white;
}

.cta-button svg {
  transition: transform 0.25s;
}

.cta-button:hover svg {
  transform: translateX(3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Animações de entrada - conteúdo sempre visível, apenas transformação suave */
.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.js-enabled .animate-in {
  transform: translateY(12px);
}

body.js-enabled .animate-in.animate-visible {
  transform: translateY(0);
}

.vocab-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.45s ease var(--delay, 0ms), box-shadow 0.25s, border-color 0.25s;
}

body.js-enabled .animate-in .vocab-card {
  transform: translateY(10px) scale(0.98);
}

body.js-enabled .animate-visible .vocab-card {
  transform: translateY(0) scale(1);
}

.grammar-card {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.5s ease var(--delay, 0ms), box-shadow 0.25s, border-color 0.25s;
}

body.js-enabled .animate-in .grammar-card {
  transform: translateX(-12px);
}

body.js-enabled .animate-visible .grammar-card {
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  
  .lesson-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .lesson-hero {
    padding: 2.5rem 0 2rem;
  }
  
  .lesson-title {
    font-size: 1.875rem;
  }
  
  .intro-section,
  .vocab-section,
  .grammar-section {
    padding: 1.5rem;
    border-radius: var(--radius);
  }
  
  .vocab-deck {
    grid-template-columns: 1fr;
  }
  
  .grammar-card-header {
    padding: 1rem 1.25rem 0.625rem;
  }
  
  .grammar-card-explanation {
    padding: 0 1.25rem 0.875rem;
  }
  
  .grammar-examples {
    padding: 0.875rem 1.25rem 1rem;
  }
  
  .irish-card-body {
    padding: 1.25rem 1.5rem;
  }
  
  .irish-card-header {
    padding: 1rem 1.25rem;
  }
  
  .cta-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .lesson-sidebar {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .lesson-title {
    font-size: 1.625rem;
  }
  
  .vocab-card {
    padding-left: 2.5rem;
  }
  
  .grammar-example-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .example-icon {
    margin-top: 0;
  }
}

/* ============================================
   Audio Buttons — Irish Pronunciation
   ============================================ */

.vocab-card-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vocab-card-word {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.vocab-card-ex {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-style: italic;
  line-height: 1.5;
}

.audio-btns-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.25rem;
}

.example-content {
  flex: 1;
  min-width: 0;
}

.example-translation {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 0.25rem;
}

.vocab-card-ex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--level-color, #059669);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.audio-btn:hover {
  background: var(--level-light, #ecfdf5);
  border-color: var(--level-color, #059669);
  transform: scale(1.12);
}

.audio-btn.playing {
  background: var(--level-color, #059669);
  border-color: var(--level-color, #059669);
  color: var(--white);
  animation: audioPulse 1.2s ease-in-out infinite;
}

.audio-btn-sm {
  width: 22px;
  height: 22px;
}

.audio-btn-sm svg {
  width: 10px;
  height: 10px;
}

@keyframes audioPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
}

/* Dual voice audio buttons */
.audio-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audio-btn-connor {
  border-color: #93c5fd;
  color: #2563eb;
}

.audio-btn-connor:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

.audio-btn-connor.playing {
  background: #2563eb;
  border-color: #2563eb;
  color: var(--white);
  animation: audioPulseConnor 1.2s ease-in-out infinite;
}

@keyframes audioPulseConnor {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

.grammar-example-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.example-text {
  flex: 1;
}

/* Password toggle eye icon */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrapper input {
  width: 100%;
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--gray-700);
}

.password-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Password strength meter */
.password-strength-wrapper {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.password-strength-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  overflow: hidden;
  transition: background 0.3s;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-fill.weak {
  width: 33%;
  background-color: #ef4444;
}

.password-strength-fill.fair {
  width: 66%;
  background-color: #f59e0b;
}

.password-strength-fill.strong {
  width: 100%;
  background-color: #22c55e;
}

.password-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
}

.password-strength-text.weak { color: #ef4444; }
.password-strength-text.fair { color: #f59e0b; }
.password-strength-text.strong { color: #22c55e; }

.password-requirements {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--gray-600);
}

.password-requirements ul {
  margin: 0.25rem 0 0 0;
  padding-left: 1.25rem;
  list-style: none;
}

.password-requirements li {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.password-requirements li::before {
  content: '○';
  color: var(--gray-400);
  font-size: 0.625rem;
}

.password-requirements li.valid::before {
  content: '✓';
  color: #22c55e;
  font-size: 0.75rem;
}

.password-requirements li.valid {
  color: var(--gray-500);
}

.password-approval-message {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.password-approval-message.show {
  opacity: 1;
  transform: translateY(0);
}
