/* Speaking Module Styles - Yulzari Brand */

.sec-outer[data-sec="speaking"] .sec-inner {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  height: calc(100vh - 46px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#speakingSelScreen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#recordBtn.recording {
  background: var(--danger);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(220, 38, 38, 0.4); }
  100% { transform: scale(1); }
}

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 768px) {
  .split {
    flex-direction: column;
    overflow-y: auto;
  }

  .divider {
    display: none;
  }

  #speakingSide {
    width: 100% !important;
    padding: 30px 20px !important;
    min-height: 200px;
    border-right: none !important;
    border-bottom: 2px solid var(--border);
  }

  .split > div:last-child {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid var(--border);
    padding: 24px !important;
    height: auto !important;
  }

  #speakTranscript {
    height: 200px !important;
    min-height: 200px;
  }

  .topbar {
    padding: 10px 12px;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sec-outer[data-sec="speaking"] .btn-primary,
  .sec-outer[data-sec="speaking"] .btn-secondary {
    min-height: 44px;
    padding: 10px 20px;
  }

  #recordBtn {
    min-height: 48px;
    min-width: 48px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 8px 10px;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .topbar > div:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  #speakingSide {
    padding: 24px 16px !important;
  }

  .split > div:last-child {
    padding: 16px !important;
  }

  #speakTranscript {
    height: 180px !important;
    min-height: 180px;
    font-size: 14px;
  }
}
