/* ==========================================================================
   Turkish Videos Page - Cleaned & Optimized
   ========================================================================== */

:root {
    --tv-primary: #6f4ef6;
    --tv-primary-dark: #5635d8;
    --tv-primary-soft: #f3efff;
    --tv-primary-ultra-soft: #faf8ff;
    --tv-secondary: #ffb545;
    --tv-secondary-soft: #fff6e7;
    --tv-text: #171326;
    --tv-text-muted: #625b75;
    --tv-text-soft: #8a8299;
    --tv-bg: #ffffff;
    --tv-bg-soft: #fbfaff;
    --tv-card: #ffffff;
    --tv-border: rgba(111, 78, 246, 0.14);
    --tv-border-strong: rgba(111, 78, 246, 0.24);
    --tv-shadow-sm: 0 10px 25px rgba(29, 18, 66, 0.06);
    --tv-shadow-md: 0 18px 45px rgba(29, 18, 66, 0.10);
    --tv-shadow-lg: 0 28px 80px rgba(29, 18, 66, 0.14);
    --tv-radius-sm: 12px;
    --tv-radius-md: 18px;
    --tv-radius-lg: 28px;
    --tv-radius-xl: 36px;
    --tv-container: 1220px;
}

/* ==========================================================================
   Base & Layout
   ========================================================================== */
.tv-page, .tv-page * { box-sizing: border-box; }
.tv-page { position: relative; width: 100%; overflow: hidden; padding: 0 0 76px; }
.tv-page::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(111, 78, 246, 0.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(111, 78, 246, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 58%);
}
.tv-container {
    position: relative; z-index: 1; width: min(var(--tv-container), calc(100% - 32px)); margin: 0 auto;
}
.tv-page h1, .tv-page h2, .tv-page h3, .tv-page p { margin-top: 0; }
.tv-page button, .tv-page a { font-family: inherit; }
.tv-page a { text-decoration: none; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.tv-hero--full {
    position: relative; width: 100vw; max-width: 100vw; min-height: 630px;
    margin: 0 calc(50% - 50vw) 50px; display: flex; align-items: center; justify-content: center;
    background-color: #1e293b; overflow: hidden;
}
.tv-hero__inner {
    width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 3rem; position: relative; z-index: 2;
}
.tv-hero__content { flex: 1; text-align: right; padding-right: 30px; }
.tv-hero__media { flex: 1; display: flex; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.tv-hero__image { max-width: 100%; height: auto; display: block; object-fit: contain; }

.tv-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px 14px;
    border: 1px solid rgba(248, 250, 252, 0.15); border-radius: 999px; background: rgba(248, 250, 252, 0.05);
    color: #f8fafc; font-size: 13px; font-weight: 800; line-height: 1.6;
}
.tv-eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 999px; background: #f8fafc; box-shadow: 0 0 0 5px rgba(248, 250, 252, 0.1);
}
.tv-title { max-width: 760px; margin-bottom: 16px; color: #ffffff; font-size: clamp(30px, 4vw, 52px); font-weight: 950; line-height: 1.22; letter-spacing: -0.7px; }
.tv-desc { max-width: 720px; margin-bottom: 26px; color: #cbd5e1; font-size: 17px; font-weight: 500; line-height: 2.05; }
.tv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.tv-stat { padding: 15px 16px; border: 1px solid rgba(248, 250, 252, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.03); }
.tv-stat strong { display: block; margin-bottom: 5px; color: #ffffff; font-size: 20px; font-weight: 950; line-height: 1.5; }
.tv-stat span { display: block; color: #94a3b8; font-size: 13px; font-weight: 700; line-height: 1.6; }
.tv-hero__actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.tv-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: var(--tv-radius-lg, 12px);
    font-size: 15px; font-weight: 800; text-decoration: none; transition: all 0.3s ease; cursor: pointer;
}
.tv-btn--aparat { background-color: #f8fafc; color: #1e293b; box-shadow: 0 4px 14px rgba(248, 250, 252, 0.2); }
.tv-btn--aparat:hover { background-color: #ffffff; transform: translateY(-2px); }
.tv-btn--youtube { background-color: transparent; border: 2px solid #f8fafc; color: #f8fafc; }
.tv-btn--youtube:hover { background-color: rgba(248, 250, 252, 0.1); transform: translateY(-2px); }

/* ==========================================================================
   Section Header & Tabs
   ========================================================================== */
.tv-section-head.tv-text-center { text-align: center; margin-bottom: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tv-section-head.tv-text-center h2 { font-size: 1.75rem; color: var(--tv-text); margin-bottom: 0.75rem; font-weight: 800; }
.tv-section-head.tv-text-center p { color: var(--tv-text-soft); font-size: 1.125rem; line-height: 1.6; max-width: 800px; margin: 0 auto; }
.tv-tabs-wrap { margin-top: 32px; padding: 0; background: transparent; border: none; box-shadow: none; }
.tv-tabs-subtitle { text-align: center; font-size: 0.95rem; color: var(--tv-text-soft); margin-bottom: 1.5rem; }
.tv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tv-tab {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 72px; padding: 16px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 12px; background: #ffffff; color: var(--tv-text-muted); cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.tv-tab:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06); color: var(--tv-text); }
.tv-tab.is-active { background: #ffffff; color: var(--tv-primary-dark); box-shadow: 0 12px 30px rgba(111, 78, 246, 0.08); border: 1px solid var(--tv-primary); }
.tv-tab__info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tv-tab__label { font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--tv-text); }
.tv-tab__sub { font-size: 12px; font-weight: 500; color: var(--tv-text-muted); line-height: 1.4; opacity: 0.8; transition: all 0.3s ease; }
.tv-tab.is-active .tv-tab__label, .tv-tab.is-active .tv-tab__sub { color: var(--tv-primary-dark); }
.tv-tab__count {
    flex: 0 0 auto; padding: 4px 12px; border-radius: 6px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 700;
    line-height: 1.6; white-space: nowrap; transition: all 0.3s ease;
}
.tv-tab.is-active .tv-tab__count { background: var(--tv-primary-soft); color: var(--tv-primary-dark); }

/* ==========================================================================
   Main Grid & Video Cards
   ========================================================================== */
.tv-main { margin-top: 34px; }
.tv-main--full { width: 100%; }
.tv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; align-items: stretch; }
.tv-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--tv-border-strong); border-radius: 22px; background: #ffffff; text-align: center; color: var(--tv-text-muted); }

.tv-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden;
    border: 1px solid var(--tv-border); border-radius: 24px; background: var(--tv-card); box-shadow: var(--tv-shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.tv-card:hover { transform: translateY(-5px); border-color: var(--tv-border-strong); box-shadow: var(--tv-shadow-md); }
.tv-card__media { position: relative; width: 100%; margin: 0; padding: 0; }
.tv-video-shell { position: relative; width: 100%; overflow: hidden; border-radius: 24px 24px 0 0; background: #111827; }
.tv-video-poster { position: relative; z-index: 1; display: block; width: 100%; height: auto; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #111827 !important; transition: opacity 0.25s ease, visibility 0.25s ease; }
.tv-video-poster.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.tv-video-poster__img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; padding: 0; border: 0; object-fit: contain; object-position: center center; background: #111827; }
.tv-video-frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; background: #000000; }
.tv-video-frame[hidden] { display: none !important; }
.tv-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000000; }
.tv-video-play {
    position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%); width: 68px; height: 68px; padding: 0; border: 0;
    border-radius: 999px; background: rgba(79, 70, 229, 0.96); color: #ffffff; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.tv-video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(67, 56, 202, 1); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30); }
.tv-video-play__icon { font-size: 28px; line-height: 1; margin-inline-start: 3px; }
.tv-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 18px 18px 20px; }
.tv-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--tv-text-soft); font-size: 13px; font-weight: 700; line-height: 1.7; }
.tv-card__meta span {
    display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 11px;
    border: 1px solid rgba(111, 78, 246, 0.14); border-radius: 999px; background: var(--tv-primary-ultra-soft);
    color: var(--tv-primary-dark); font-size: 12px; font-weight: 850; line-height: 1.6;
}
.tv-card__title { margin: 0 0 10px; color: var(--tv-text); font-size: 18px; font-weight: 950; line-height: 1.8; letter-spacing: -0.1px; }
.tv-card__excerpt { margin: 0 0 18px; color: var(--tv-text-muted); font-size: 14px; font-weight: 500; line-height: 2; }
.tv-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tv-card__button, .tv-card__link {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 14px;
    font-size: 14px; font-weight: 800; line-height: 1.6; text-decoration: none; transition: all 0.2s ease;
}
.tv-card__button { border: 0; cursor: pointer; background: linear-gradient(135deg, #4f46e5, #312e81); color: #ffffff; }
.tv-card__button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22); }
.tv-card__link { background: #eef2ff; color: #312e81; }
.tv-card__link:hover { background: #e0e7ff; }

/* ==========================================================================
   Load More
   ========================================================================== */
.tv-load-more-wrap { text-align: center; margin-top: 3rem; width: 100%; }
.tv-btn--load-more {
    background-color: #f8fafc; color: #1e293b; border: 2px solid #e2e8f0; padding: 0.75rem 2rem; font-size: 1rem;
    font-weight: 700; font-family: inherit; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
}
.tv-btn--load-more:hover { background-color: #1e293b; color: #ffffff; border-color: #1e293b; }

/* ==========================================================================
   Course CTA
   ========================================================================== */
.tv-course-cta { margin: 80px 0; padding: 0 15px; }
.tv-course-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; max-width: 1200px; margin: 0 auto; background-color: transparent; padding: 0; }
.tv-course-cta__content { flex: 1; max-width: 580px; }
.tv-course-cta__badge { display: inline-block; color: #1e293b; font-size: 14px; font-weight: 700; margin-bottom: 20px; position: relative; padding-right: 18px; }
.tv-course-cta__badge::before { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background-color: #eab308; border-radius: 50%; }
.tv-course-cta__title { font-size: 34px; font-weight: 900; color: #1e293b; margin-bottom: 24px; line-height: 1.5; letter-spacing: -0.5px; }
.tv-course-cta__desc { font-size: 17px; color: #64748b; line-height: 2; margin-bottom: 35px; }
.tv-course-cta__btn { display: inline-flex; align-items: center; justify-content: center; background-color: #0f172a; color: #ffffff; padding: 16px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 16px; transition: all 0.3s ease; }
.tv-course-cta__btn:hover { background-color: #1e293b; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15); }
.tv-course-cta__image { flex: 1; display: flex; justify-content: flex-end; }
.tv-course-cta__image img { max-width: 100%; height: auto; border-radius: 50% 50% 50% 0; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.course-faq { padding: 80px 20px; background-color: #f8fafc; direction: rtl; }
.faq-container { max-width: 1200px; margin: 0 auto; }
.course-faq .section-title { text-align: center; color: #1e293b; font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.course-faq .section-subtitle { text-align: center; color: #475569; font-size: 16px; margin-top: 0; margin-bottom: 50px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.faq-column { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: box-shadow 0.3s ease; }
.faq-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; padding: 20px 24px; font-size: 16px; font-weight: 700; color: #1e293b; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-icon { font-size: 26px; font-weight: 300; color: #64748b; transition: transform 0.3s ease, color 0.3s ease; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); color: #1e293b; }
.faq-content { padding: 0 24px 24px 24px; color: #475569; font-size: 15px; line-height: 1.8; text-align: justify; }
.faq-content p { margin: 0; padding-top: 20px; border-top: 1px dashed #e2e8f0; }

/* ==========================================================================
   User Reviews Section
   ========================================================================== */
.tv-reviews-section {
    margin: 80px 0; padding: 60px 0; overflow: hidden; position: relative; background-color: var(--tv-bg);
    border-top: 1px solid var(--tv-border); border-bottom: 1px solid var(--tv-border);
    width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
}
.tv-reviews-header { text-align: center; margin-bottom: 50px; }
.tv-reviews-title { font-size: 32px; font-weight: 900; color: var(--tv-text); margin-bottom: 15px; }
.tv-reviews-divider { width: 80px; height: 4px; background-color: var(--tv-secondary); margin: 0 auto; border-radius: 4px; }
.tv-reviews-slider-wrap { width: 100%; overflow: hidden; position: relative; padding: 20px 0; direction: ltr; }
.tv-reviews-slider { display: flex; gap: 24px; width: max-content; animation: tv-scroll-right 40s linear infinite; }
.tv-reviews-slider:hover { animation-play-state: paused; }
.tv-review-card {
    width: 320px; background: var(--tv-card); border-radius: var(--tv-radius-lg); padding: 35px 25px;
    box-shadow: var(--tv-shadow-sm); border: 1px solid var(--tv-border); display: flex; flex-direction: column;
    align-items: center; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; direction: rtl; position: relative;
}
.tv-review-card:hover { transform: translateY(-8px); box-shadow: var(--tv-shadow-md); border-color: var(--tv-primary); }
.tv-review-card::before { content: "“"; position: absolute; top: 10px; right: 20px; font-size: 80px; line-height: 1; color: var(--tv-primary-soft); font-family: serif; z-index: 0; }
.tv-review-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--tv-bg); box-shadow: 0 4px 10px rgba(0,0,0,0.1); position: relative; z-index: 1; }
.tv-review-name { font-size: 18px; font-weight: 800; color: var(--tv-text); margin-bottom: 5px; position: relative; z-index: 1; }
.tv-review-role { font-size: 13px; color: var(--tv-text-soft); margin-bottom: 20px; position: relative; z-index: 1; }
.tv-review-text { font-size: 14px; line-height: 1.8; color: var(--tv-text-muted); font-weight: 500; position: relative; z-index: 1; }

@keyframes tv-scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .tv-hero__inner { flex-direction: column; text-align: center; padding: 40px 20px; gap: 2rem; }
    .tv-hero__content { padding-right: 0; text-align: center; margin-bottom: 30px; max-width: 100%; }
    .tv-hero__media { justify-content: center; width: 100%; max-width: 80%; margin: 0 auto; }
    .tv-hero__actions { justify-content: center; }
    
    .tv-course-cta__inner { flex-direction: column-reverse; text-align: center; gap: 30px; padding: 40px 20px; }
    .tv-course-cta__desc { border-right: none; padding-right: 0; text-align: right; }
    .tv-course-cta__image { justify-content: center; }
    .tv-course-cta__badge { padding-right: 0; padding-left: 0; }
    .tv-course-cta__badge::before { display: none; }
    .tv-course-cta__title { font-size: 28px; }
}

@media (max-width: 920px) {
    .tv-page { padding: 0 0 58px; }
    .tv-container { width: min(100% - 24px, var(--tv-container)); }
    .tv-stats, .tv-tabs { grid-template-columns: 1fr; }
    .tv-tabs { gap: 12px; }
    .tv-tab { min-height: 64px; }
    .tv-section-head { display: block; }
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
    .course-faq { padding: 60px 20px; }
    .tv-review-card { width: 280px; padding: 25px 20px; }
    .tv-reviews-title { font-size: 26px; }
}

@media (max-width: 680px) {
    .tv-grid { grid-template-columns: 1fr; gap: 18px; }
    .tv-hero--full { min-height: auto; padding-top: 20px; padding-bottom: 20px; }
    .tv-title { font-size: 29px; }
    .tv-desc { font-size: 15px; line-height: 1.95; }
    .tv-tabs-wrap { padding: 18px; border-radius: 22px; }
    .tv-card, .tv-video-shell { border-radius: 22px; }
    .tv-video-play { width: 60px; height: 60px; }
    .tv-video-play__icon { font-size: 24px; }
    .tv-card__title { font-size: 16px; }
    .tv-card__excerpt { font-size: 14px; }
    .tv-card__actions { flex-direction: column; align-items: stretch; }
    .tv-card__button, .tv-card__link { width: 100%; }
}

@media (max-width: 420px) {
    .tv-container { width: min(100% - 18px, var(--tv-container)); }
    .tv-title { font-size: 25px; }
    .tv-eyebrow { font-size: 12px; }
    .tv-stat { padding: 13px; }
    .tv-tab { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px; }
    .tv-card__body { padding: 16px; }
    .tv-video-play { width: 56px; height: 56px; }
    .tv-video-play__icon { font-size: 22px; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .tv-page *, .tv-page *::before, .tv-page *::after {
        animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
        scroll-behavior: auto !important; transition-duration: 0.001ms !important;
    }
}
