/* ═══════════════════════════════════════════════
   TEDAVILER PAGE – Redesigned
   Matches homepage design language
   Colors: Gold #D4AF37, Purple #9333EA, Deep #1A0B2E
   Fonts: Inter (headings/body)
   ═══════════════════════════════════════════════ */

/* ── Hero Section ── */
.td-hero {
  position: relative;
  padding: 130px 0 60px;
  background: #FAFAF8;
  overflow: hidden;
}
.td-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.td-blob {
  position: absolute;
  border-radius: 50%;
}
.td-blob-1 { top: -80px; left: -80px; width: 500px; height: 500px; background: rgba(244, 228, 193, 0.4); filter: blur(100px); }
.td-blob-2 { top: 40%; right: -100px; width: 420px; height: 420px; background: rgba(232, 213, 242, 0.3); filter: blur(120px); }
.td-blob-3 { bottom: -40px; left: 30%; width: 350px; height: 250px; background: rgba(212, 175, 55, 0.1); filter: blur(80px); }

.td-container {
  max-width: 1490px;
  margin: 0 auto;
  padding: 0 24px;
}
@media(min-width:1024px) { .td-container { padding: 0 48px; } }

.td-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.td-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(147, 51, 234, 0.2);
  background: rgba(147, 51, 234, 0.05);
  color: #9333EA;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 20px;
}

.td-hero-title {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
@media(min-width:768px) { .td-hero-title { font-size: 52px; } }

.td-grad-text {
  background: linear-gradient(135deg, #D4AF37, #9333EA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.td-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(90, 74, 106, 0.75);
  line-height: 1.8;
  margin: 0 auto 32px;
  max-width: 560px;
}

/* ── Filter Pills ── */
.td-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.td-filter {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.td-filter:hover {
  border-color: #9ca3af;
  color: #374151;
}
.td-filter.active {
  background: #1f2937;
  color: white;
  border-color: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Cards Section ── */
.td-cards-section {
  padding: 50px 0 80px;
  background: #FAFAF8;
  position: relative;
}

/* ── Stats Bar ── */
.td-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media(max-width:768px) { .td-stats { grid-template-columns: 1fr; gap: 10px; } }
.td-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.td-stat:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.td-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.td-stat-icon i { font-size: 20px; }
.td-stat-val {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}
.td-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

/* ── Grid ── */
.td-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
@media(min-width: 1200px) { .td-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 768px) { .td-grid { grid-template-columns: 1fr; } }

/* ── Card ── */
.td-card {
  display: flex;
}
.td-card-inner {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  width: 100%;
}
.td-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: 20px;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, var(--card-glow, rgba(0,0,0,0.05)) 0%, transparent 70%);
}
.td-card-inner:hover::before { opacity: 1; }
.td-card-inner:hover {
  box-shadow: 0 20px 60px -15px var(--card-glow, rgba(0,0,0,0.1));
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 1);
}

/* Progress bar at bottom on hover */
.td-card-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(to right, var(--card-accent, #9333EA), transparent);
  transition: width 0.5s ease;
}
.td-card-inner:hover::after { width: 100%; }

/* ── Card Header ── */
.td-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.td-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: transform 0.3s ease;
}
.td-card-icon i {
  font-size: 22px;
}
.td-card-inner:hover .td-card-icon {
  transform: scale(1.1);
}

/* ── Badge ── */
.td-badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.td-badge[data-type="egitim"] {
  background: rgba(147, 51, 234, 0.1);
  color: #9333EA;
  border: 1px solid rgba(147, 51, 234, 0.2);
}
.td-badge[data-type="terapi"] {
  background: rgba(13, 148, 136, 0.1);
  color: #0D9488;
  border: 1px solid rgba(13, 148, 136, 0.2);
}
.td-badge[data-type="seans"] {
  background: rgba(212, 175, 55, 0.12);
  color: #B8941F;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ── Card Content ── */
.td-card-title {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
  line-height: 1.3;
}
.td-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 16px;
}

/* ── Card List ── */
.td-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.td-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.td-check-icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

/* ── Card Footer ── */
.td-card-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 10px;
}

/* ── Buttons ── */
.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.td-btn i { font-size: 16px; }

.td-btn-primary {
  background: #1f2937;
  color: white;
}
.td-btn-primary:hover {
  background: #111827;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.td-btn-gradient {
  background: linear-gradient(135deg, #9333EA, #D4AF37);
  color: white;
}
.td-btn-gradient:hover {
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
  transform: translateY(-1px);
}

.td-btn-video {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.td-btn-video:hover {
  border-color: var(--card-accent, #9333EA);
  color: var(--card-accent, #9333EA);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.td-btn-video.active {
  background: var(--card-accent, #9333EA);
  color: white;
  border-color: var(--card-accent, #9333EA);
}
.td-btn-video.active i {
  transform: rotate(90deg);
}
.td-btn-video i {
  transition: transform 0.2s ease;
}

/* ═══════════════════════════════════════════════
   VIDEO PANEL
   ═══════════════════════════════════════════════ */
.td-video-panel {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.td-video-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}
.td-video-header i {
  color: var(--card-accent, #9333EA);
  font-size: 18px;
}
.td-video-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Section */
.td-section { margin-bottom: 12px; }
.td-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding-left: 4px;
}

/* Lesson list */
.td-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s ease;
  gap: 10px;
}
.td-lesson:hover { background: rgba(0, 0, 0, 0.03); }
.td-lesson-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.td-lesson-icon {
  flex-shrink: 0;
  font-size: 16px;
}
.td-lesson-icon.td-lesson-icon--play { color: #22c55e; }
.td-lesson-icon.td-lesson-icon--lock { color: #9ca3af; opacity: 0.5; }
.td-lesson-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-lesson--locked .td-lesson-title { color: #9ca3af; opacity: 0.7; }
.td-lesson-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.td-lesson-dur {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* Tags */
.td-lesson-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.td-lesson-tag--free {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.td-lesson-tag--locked {
  background: rgba(0, 0, 0, 0.04);
  color: #9ca3af;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Playing state */
.td-lesson.playing {
  background: rgba(147, 51, 234, 0.06);
  border-radius: 10px 10px 0 0;
}

/* Player */
.td-player-wrap {
  list-style: none;
  padding: 0 12px 12px;
  margin: 0;
}
.td-player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.td-player-frame iframe,
.td-player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* CTA bar */
.td-video-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}
.td-video-cta .td-btn { width: 100%; }

/* Lock toast */
.td-lock-toast {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  animation: tdToastIn 0.25s ease;
}

/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */
.td-cta-section {
  padding: 0 0 80px;
  background: #FAFAF8;
}
.td-cta-box {
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(212, 175, 55, 0.15));
}
.td-cta-inner {
  background: white;
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
}
.td-cta-icon {
  font-size: 40px;
  background: linear-gradient(135deg, #9333EA, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 16px;
}
.td-cta-title {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px;
  line-height: 1.3;
}
@media(min-width:768px) { .td-cta-title { font-size: 32px; } }
.td-cta-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 500px;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   Only applied when JS adds 'td-js' class to body
   ═══════════════════════════════════════════════ */
.td-js .td-rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.td-js .td-rv.in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════ */
@keyframes tdToastIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media(max-width:768px) {
  .td-hero { padding: 100px 0 40px; }
  .td-hero-title { font-size: 32px; }
  .td-hero-sub { font-size: 14px; margin-bottom: 24px; }
  .td-cards-section { padding: 30px 0 60px; }
  .td-card-inner { padding: 22px; }
  .td-card-title { font-size: 19px; }
  .td-cta-inner { padding: 36px 20px; }
  .td-cta-title { font-size: 24px; }
  .td-cta-section { padding-bottom: 60px; }
}
