/* ============================================
   TTS Explainer Panel – Transdermal Serisi
   Premium expandable educational panel
   ============================================ */

/* Panel container – hidden by default, transitions smooth */
#transdermal-explainer.tts-panel {
  background: #f9f9fc;
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(91, 75, 138, 0.08);
  border: 1px solid rgba(91, 75, 138, 0.12);
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

/* Hidden state */
#transdermal-explainer.tts-panel.hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Visible state */
#transdermal-explainer.tts-panel:not(.hidden) {
  max-height: 2000px;
  opacity: 1;
}

/* Brief highlight when scrolled into view via TTS info chip */
#transdermal-explainer.tts-panel.tts-highlight {
  box-shadow: 0 0 0 4px rgba(90, 70, 140, 0.18);
  transition: box-shadow 0.3s ease;
}

/* Dark mode support */
[data-theme="dark"] #transdermal-explainer.tts-panel {
  background: #1a1d2e;
  border-color: rgba(167, 139, 250, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ----- A. Header ----- */
.tts-header {
  text-align: center;
  margin-bottom: 40px;
}

.tts-header h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #5b4b8a;
  margin-bottom: 12px;
  line-height: 1.3;
}

[data-theme="dark"] .tts-header h3 {
  color: #a78bfa;
}

.tts-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ----- B. Video Section ----- */
.tts-video-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(91, 75, 138, 0.15);
  background: #000;
}

.tts-video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.tts-video-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 12px;
  font-style: italic;
}

/* ----- C. 3-Step Process ----- */
.tts-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.tts-step-card {
  background: linear-gradient(135deg, rgba(91, 75, 138, 0.06), rgba(123, 104, 238, 0.04));
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(91, 75, 138, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tts-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(91, 75, 138, 0.12);
}

[data-theme="dark"] .tts-step-card {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(167, 139, 250, 0.04));
  border-color: rgba(167, 139, 250, 0.15);
}

.tts-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b4b8a, #7b68ee);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
}

.tts-step-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.tts-step-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  #transdermal-explainer.tts-panel {
    padding: 24px 20px;
  }

  .tts-header h3 {
    font-size: 1.4rem;
  }

  .tts-steps {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .tts-faq-btn {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .tts-faq-content-inner {
    padding: 0 18px 16px;
  }
}
