/* ==========================================================================
   ENGLISH PRACTICE LAB - STYLES (pratica.css)
   ========================================================================== */

.lab-hero {
  padding: 3.5rem 0 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

.lab-hero-content {
  max-width: 840px;
  margin: 0 auto;
}

/* Tabs */
.lab-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.lab-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

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

.lab-tab-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(6, 182, 212, 0.25));
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.tab-icon {
  font-size: 1.5rem;
}

.tab-meta strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.tab-meta small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lab-tab-btn.active .tab-meta small {
  color: #a5f3fc;
}

/* Panels */
.lab-workspace {
  padding: 2.5rem 1.5rem 5rem;
}

.lab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.lab-panel.active {
  display: block;
}

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

.panel-header-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.panel-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.panel-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE QUIZ CARD (MURPHY GRAMMAR)
   ========================================================================== */
.interactive-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-card-border);
}

.quiz-step {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.quiz-score-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.question-audio-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-play-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-play-audio:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.audio-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.quiz-sentence {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.0625rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--accent-green) !important;
  color: #6ee7b7 !important;
  font-weight: 700;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.quiz-feedback {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.feedback-status {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feedback-status.correct {
  color: var(--accent-green);
}

.feedback-status.wrong {
  color: #ef4444;
}

.feedback-explanation {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.btn-next-quiz {
  width: auto;
}

/* Murphy Rule Box */
.rule-card {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.rule-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.rule-content h4 {
  font-family: var(--font-heading);
  color: #fbbf24;
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}

.rule-content p {
  font-size: 0.9375rem;
  color: #fde68a;
  line-height: 1.55;
}

/* ==========================================================================
   IDIOMS GRID (AMY GILLETT)
   ========================================================================== */
.idioms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.idiom-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.idiom-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

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

.idiom-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.btn-sound-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-sound-mini:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.idiom-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.idiom-meaning {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.idiom-example {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
}

.example-en {
  font-size: 0.9375rem;
  color: #f1f5f9;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.example-pt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Dialogue Box */
.dialogue-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.dialogue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dialogue-header h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.dialogue-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dialogue-line {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.dialogue-line.speaker-a {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  align-self: flex-start;
  max-width: 85%;
}

.dialogue-line.speaker-b {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  align-self: flex-end;
  max-width: 85%;
}

/* ==========================================================================
   PRONUNCIATION MATRIX (TEACHER MARZO)
   ========================================================================== */
.pronunciation-matrix {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}

.pron-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.pron-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pron-icon {
  font-size: 1.5rem;
}

.pron-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pron-title-wrap p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comparison-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.comparison-col {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.error-col {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.correct-col {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.comp-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.error-col .comp-label { color: #f87171; }
.correct-col .comp-label { color: #34d399; }

.phonetic-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.btn-pron-sample {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-pron-sample:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-pron-sample.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-green);
  color: #a7f3d0;
}

.btn-pron-sample.correct:hover {
  background: var(--accent-green);
  color: #042410;
}

.pron-tip {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-amber);
}

/* Course Banner Showcase */
.course-banner-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.course-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.course-banner-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.course-banner-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.course-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.course-bonus-info {
  font-size: 0.875rem;
  color: #6ee7b7;
  font-weight: 600;
}

/* Bottom CTA */
.lab-bottom-cta {
  background: #060910;
  border-top: 1px solid var(--bg-card-border);
  padding: 5rem 0;
}

.lab-bottom-cta h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.lab-bottom-cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Responsiveness */
@media (max-width: 768px) {
  .idioms-grid {
    grid-template-columns: 1fr;
  }

  .comparison-bar {
    grid-template-columns: 1fr;
  }

  .lab-tab-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Irregular Verbs Modal */
.iv-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.iv-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.iv-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.iv-modal-overlay.show .iv-modal-content {
  transform: translateY(0);
}

.iv-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.iv-modal-header h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.25rem;
  margin: 0;
}
.iv-modal-header small {
  color: var(--text-secondary);
  font-weight: 400;
}
.iv-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.iv-close-btn:hover {
  opacity: 1;
}

.iv-modal-body {
  padding: 1.5rem 2rem;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iv-search-bar {
  margin-bottom: 1.5rem;
}
.iv-search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.iv-search-input:focus {
  border-color: var(--accent-cyan);
}

.iv-table-container {
  flex: 1;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
}

.iv-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.iv-table th {
  position: sticky;
  top: 0;
  background: #111827;
  color: var(--accent-cyan);
  padding: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--bg-card-border);
  z-index: 10;
}
.iv-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 500;
}
.iv-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.btn-iv-audio {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  color: #a7f3d0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-iv-audio:hover {
  background: var(--accent-green);
  color: #000;
  transform: scale(1.1);
}
