/* ═══════════════════════════════════════════════════════════
   VURGU & TONLAMA PRATİKLERİ — İnteraktif Uygulama Sayfası
   ═══════════════════════════════════════════════════════════ */

/* ─── Mode Selector ──────────────────────────────────── */
.vt-modes {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  justify-content: center;
  flex-wrap: wrap;
}

.vt-mode-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.vt-mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  transition: background var(--transition-normal);
}

.vt-mode-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.vt-mode-card:hover::before {
  background: var(--color-primary);
}

.vt-mode-card--active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.vt-mode-card--active::before {
  background: var(--color-primary);
}

.vt-mode-card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-md);
}

.vt-mode-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.vt-mode-card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

/* ─── Game Area ──────────────────────────────────────── */
.vt-game {
  display: none;
  animation: vtFadeIn 0.4s ease;
}

.vt-game--active {
  display: block;
}

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

/* ─── Progress Header ───────────────────────────────── */
.vt-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.vt-progress-header__info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.vt-question-counter {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

.vt-question-counter span {
  color: var(--color-primary);
}

.vt-score-display {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-md);
}

.vt-score-display__value {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
}

.vt-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.vt-progress-bar__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  width: 0%;
}

/* ─── Sentence Card ──────────────────────────────────── */
.vt-sentence-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color var(--transition-normal);
}

.vt-sentence-card--correct {
  border-color: #2E7D32;
  animation: vtPulseCorrect 0.6s ease;
}

.vt-sentence-card--wrong {
  border-color: var(--color-primary);
  animation: vtShakeWrong 0.5s ease;
}

@keyframes vtPulseCorrect {
  0%, 100% { box-shadow: var(--shadow-card); }
  50% { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0.15); }
}

@keyframes vtShakeWrong {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.vt-instruction {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-lg);
}

.vt-sentence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  line-height: 2.4;
}

.vt-word {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  border: 2px solid transparent;
  position: relative;
}

.vt-word:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-subtle);
  transform: scale(1.05);
}

.vt-word--selected {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.vt-word--selected:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.vt-word--correct {
  background: #E8F5E9;
  color: #2E7D32;
  border-color: #2E7D32;
  cursor: default;
}

.vt-word--correct:hover {
  background: #E8F5E9;
  border-color: #2E7D32;
  color: #2E7D32;
  transform: scale(1);
}

.vt-word--missed {
  background: #FFF3E0;
  color: #E65100;
  border-color: #E65100;
  cursor: default;
}

.vt-word--missed:hover {
  background: #FFF3E0;
  border-color: #E65100;
  color: #E65100;
  transform: scale(1);
}

.vt-word--wrong-pick {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
  cursor: default;
  text-decoration: line-through;
}

.vt-word--wrong-pick:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1);
}

/* ─── Tonlama Mode — Arrow Selector ──────────────────── */
.vt-tonlama-area {
  text-align: center;
}

.vt-tonlama-sentence {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-relaxed);
}

.vt-tonlama-options {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.vt-tonlama-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  min-width: 140px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.vt-tonlama-btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.vt-tonlama-btn--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.vt-tonlama-btn--correct {
  border-color: #2E7D32;
  background: #E8F5E9;
}

.vt-tonlama-btn--wrong {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  opacity: 0.7;
}

.vt-tonlama-btn__icon {
  font-size: 2rem;
}

.vt-tonlama-btn__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
}

/* ─── Feedback Area ──────────────────────────────────── */
.vt-feedback {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
  display: none;
  animation: vtFadeIn 0.3s ease;
}

.vt-feedback--visible {
  display: block;
}

.vt-feedback--correct {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.vt-feedback--wrong {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
}

.vt-feedback__icon {
  font-size: 1.25rem;
  margin-right: var(--space-sm);
}

/* ─── Streak Indicator ───────────────────────────────── */
.vt-streak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  min-height: 32px;
}

.vt-streak__flame {
  font-size: 1.25rem;
  animation: vtFlameFloat 1s ease-in-out infinite;
}

@keyframes vtFlameFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.vt-streak__text {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

/* ─── Result Card ────────────────────────────────────── */
.vt-result {
  display: none;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  animation: resultSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vt-result--visible {
  display: block;
}

.vt-result__emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--space-md);
  animation: vtFlameFloat 2s ease-in-out infinite;
}

.vt-result__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.vt-result__subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.vt-result__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.vt-result__grade {
  display: inline-block;
  padding: 8px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xl);
}

.vt-result__grade--s {
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 160, 0, 0.3);
}

.vt-result__grade--a {
  background: #2E7D32;
  color: #fff;
}

.vt-result__grade--b {
  background: #1565C0;
  color: #fff;
}

.vt-result__grade--c {
  background: #E65100;
  color: #fff;
}

.vt-result__grade--d {
  background: var(--color-text-tertiary);
  color: #fff;
}

/* ─── Waveform Visualizer ────────────────────────────── */
.vt-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 48px;
  margin-bottom: var(--space-lg);
}

.vt-waveform__bar {
  width: 4px;
  background: var(--color-primary-subtle);
  border-radius: var(--radius-full);
  transition: height var(--transition-fast);
  animation: vtWave 1.2s ease-in-out infinite;
}

.vt-waveform__bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.vt-waveform__bar:nth-child(2) { animation-delay: 0.1s; height: 32px; }
.vt-waveform__bar:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.vt-waveform__bar:nth-child(4) { animation-delay: 0.3s; height: 40px; }
.vt-waveform__bar:nth-child(5) { animation-delay: 0.4s; height: 28px; }
.vt-waveform__bar:nth-child(6) { animation-delay: 0.5s; height: 36px; }
.vt-waveform__bar:nth-child(7) { animation-delay: 0.6s; height: 16px; }
.vt-waveform__bar:nth-child(8) { animation-delay: 0.7s; height: 44px; }
.vt-waveform__bar:nth-child(9) { animation-delay: 0.8s; height: 20px; }
.vt-waveform__bar:nth-child(10) { animation-delay: 0.9s; height: 32px; }
.vt-waveform__bar:nth-child(11) { animation-delay: 1.0s; height: 28px; }
.vt-waveform__bar:nth-child(12) { animation-delay: 1.1s; height: 36px; }

@keyframes vtWave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.vt-waveform--active .vt-waveform__bar {
  background: var(--color-primary);
}

/* ─── Difficulty Badge ───────────────────────────────── */
.vt-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.vt-diff-badge--kolay {
  background: #E8F5E9;
  color: #2E7D32;
}

.vt-diff-badge--orta {
  background: #FFF3E0;
  color: #E65100;
}

.vt-diff-badge--zor {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ─── Hint Tooltip ───────────────────────────────────── */
.vt-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-tertiary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vt-hint-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.vt-hint-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .vt-modes {
    flex-direction: column;
    align-items: center;
  }

  .vt-mode-card {
    max-width: 100%;
    width: 100%;
  }

  .vt-word {
    font-size: var(--fs-h4);
    padding: 4px 10px;
  }

  .vt-sentence {
    gap: 4px;
    line-height: 2.2;
  }

  .vt-progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .vt-result__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .vt-tonlama-options {
    flex-direction: column;
    align-items: center;
  }

  .vt-tonlama-btn {
    width: 100%;
    max-width: 280px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }
}
