/* ============================================================
   FA TALKS EPISODE WIDGET – STYLESHEET
   Matches design mockup pixel-perfectly.
   Uses CSS Custom Properties set inline by PHP/Elementor.
   ============================================================ */

/* ── Google Fonts import (Playfair Display + Inter) ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Reset inside widget ── */
.fat-wrapper *,
.fat-wrapper *::before,
.fat-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Root ── */
.fat-wrapper {
    background-color: var(--fat-bg, #111111);
    color: var(--fat-txt, #ffffff);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.fat-hero {
    display: grid;
    grid-template-columns: 52px 1fr 1fr;
    min-height: 320px;
    position: relative;
}

/* ── Episode nav sidebar ── */
.fat-ep-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 28px;
    border-right: 1px solid var(--fat-border, #2a2a2a);
}

.fat-ep-nav__item {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--fat-muted, #9b9b9b);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    text-decoration: none;
    display: block;
}

.fat-ep-nav__item:hover {
    color: var(--fat-txt, #ffffff);
}

.fat-ep-nav__item.is-active {
    color: var(--fat-accent, #C0392B);
}

.fat-ep-nav__item.is-active::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--fat-accent, #C0392B);
    border-radius: 0 2px 2px 0;
}

/* ── Hero content (text) ── */
.fat-hero__content {
    padding: 36px 40px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.fat-series-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--fat-muted, #9b9b9b);
    text-transform: uppercase;
}

.fat-dot {
    color: var(--fat-accent, #C0392B);
    margin: 0 6px;
}

.fat-episode-label {
    color: var(--fat-accent, #C0392B);
}

.fat-episode-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--fat-txt, #ffffff);
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.fat-intro-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--fat-muted, #9b9b9b);
    margin-top: 12px;
}

.fat-host-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--fat-txt, #ffffff);
}

.fat-institution {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fat-muted, #9b9b9b);
}

.fat-intro-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: var(--fat-muted, #9b9b9b);
    max-width: 320px;
    margin-top: 4px;
}

/* ── Play Button ── */
.fat-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fat-txt, #ffffff);
    padding: 0;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.fat-play-btn:hover {
    opacity: 0.8;
}

.fat-play-btn__icon {
    width: 42px;
    height: 42px;
    color: var(--fat-accent, #C0392B);
    flex-shrink: 0;
}

.fat-play-btn__icon svg {
    width: 100%;
    height: 100%;
}

.fat-play-btn__label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fat-play-btn__duration {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--fat-muted, #9b9b9b);
}

/* ── Hero media (right column) ── */
.fat-hero__media {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.fat-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fat-thumb--placeholder {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
}

.fat-thumb--placeholder svg {
    width: 80px;
    opacity: 0.5;
}

/* ── Video Player overlay ── */
.fat-player {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 10;
}

.fat-player__iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Video control icons ── */
.fat-video-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.fat-vc-icon {
    color: rgba(255,255,255,0.75);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.fat-vc-icon:hover {
    color: #fff;
}

/* ================================================================
   HIGHLIGHTS TIMELINE BAR
   ================================================================ */
.fat-timeline-bar {
    background: var(--fat-panel, #181818);
    border-top: 1px solid var(--fat-border, #2a2a2a);
    border-bottom: 1px solid var(--fat-border, #2a2a2a);
    padding: 0 52px;
    display: flex;
    align-items: stretch;
    min-height: 60px;
    gap: 0;
}

.fat-timeline-bar__label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fat-txt, #ffffff);
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding-right: 28px;
    border-right: 1px solid var(--fat-border, #2a2a2a);
    flex-shrink: 0;
}

.fat-timeline-bar__track {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.fat-timeline-bar__track::-webkit-scrollbar {
    display: none;
}

.fat-hl-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 24px;
    gap: 3px;
    position: relative;
    cursor: pointer;
    border-right: 1px solid var(--fat-border, #2a2a2a);
    flex-shrink: 0;
    transition: background 0.2s;
}

.fat-hl-item:hover {
    background: rgba(255,255,255,0.03);
}

.fat-hl-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fat-border, #2a2a2a);
    margin-top: -3px;
}

.fat-hl-item.is-active .fat-hl-dot {
    background: var(--fat-accent, #C0392B);
}

.fat-hl-time {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--fat-accent, #C0392B);
    letter-spacing: 0.05em;
}

.fat-hl-item:not(.is-active) .fat-hl-time {
    color: var(--fat-muted, #9b9b9b);
}

.fat-hl-title {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--fat-txt, #ffffff);
    max-width: 120px;
    line-height: 1.3;
}

/* ================================================================
   BOTTOM GRID
   ================================================================ */
.fat-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--fat-border, #2a2a2a);
}

.fat-about,
.fat-speaker-card,
.fat-quote-block {
    padding: 32px;
    border-right: 1px solid var(--fat-border, #2a2a2a);
}

.fat-quote-block {
    border-right: none;
}

/* ── Section label ── */
.fat-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fat-muted, #9b9b9b);
    margin-bottom: 14px;
    position: relative;
    padding-left: 0;
}

.fat-section-label::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fat-accent, #C0392B);
    margin-left: 6px;
    vertical-align: middle;
}

/* ── About ── */
.fat-about-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--fat-muted, #9b9b9b);
    margin-bottom: 18px;
}

.fat-about-text p { margin-bottom: 8px; }

.fat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.fat-tag {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--fat-muted, #9b9b9b);
    border: 1px solid var(--fat-border, #2a2a2a);
    border-radius: 2px;
    padding: 3px 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.fat-tag:hover {
    border-color: var(--fat-accent, #C0392B);
    color: var(--fat-txt, #ffffff);
}

.fat-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fat-muted, #9b9b9b);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0;
    transition: color 0.2s;
}

.fat-share-btn:hover {
    color: var(--fat-txt, #ffffff);
}

/* ── Speaker Card ── */
.fat-speaker-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.fat-speaker-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--fat-border, #2a2a2a);
    flex-shrink: 0;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fat-speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fat-speaker-avatar svg {
    width: 58px;
    height: 58px;
}

.fat-speaker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.fat-speaker-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--fat-txt, #ffffff);
    line-height: 1.2;
}

.fat-speaker-bio {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: var(--fat-muted, #9b9b9b);
    margin-bottom: 14px;
}

.fat-profile-link {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fat-accent, #C0392B);
    text-decoration: none;
    transition: opacity 0.2s;
}

.fat-profile-link:hover {
    opacity: 0.8;
}

/* ── Quote Block ── */
.fat-quote-block {
    position: relative;
    overflow: hidden;
    background-color: #0e0e0e;
    background-image: var(--fat-quote-bg);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.fat-quote-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,17,17,0.95) 40%, rgba(17,17,17,0.55));
}

.fat-quote-mark {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 72px;
    line-height: 0.7;
    color: var(--fat-accent, #C0392B);
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.fat-quote-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    line-height: 1.5;
    color: var(--fat-txt, #ffffff);
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.fat-quote-author {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fat-muted, #9b9b9b);
    position: relative;
    z-index: 1;
}

/* ================================================================
   RESPONSIVE – MOBILE (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {

    /* ── Mobilde wrapper relative pozisyon ── */
    .fat-wrapper {
        position: relative;
    }

    /* ── Episode nav: mobilde sticky yatay bar olarak en üstte ── */
    .fat-ep-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid var(--fat-border, #2a2a2a);
        background: var(--fat-bg, #111111);
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .fat-ep-nav::-webkit-scrollbar {
        display: none;
    }

    .fat-ep-nav__item {
        flex-shrink: 0;
        padding: 12px 18px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        border-right: 1px solid var(--fat-border, #2a2a2a);
        text-align: center;
        min-width: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fat-ep-nav__item:last-child {
        border-right: none;
    }

    /* Aktif bolum: alt kenarlik kirmizi */
    .fat-ep-nav__item.is-active {
        color: var(--fat-accent, #C0392B);
        border-bottom: 3px solid var(--fat-accent, #C0392B);
        background: rgba(192, 57, 43, 0.06);
    }

    /* Sol cubuk isaretini mobilde gizle */
    .fat-ep-nav__item.is-active::before {
        display: none;
    }

    /* ── Hero tek sutun ── */
    .fat-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .fat-hero__content {
        padding: 24px 20px 20px;
        order: 1;
    }

    .fat-hero__media {
        order: 2;
        min-height: 220px;
        width: 100%;
    }

    .fat-episode-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    /* ── Timeline scrolls horizontally ── */
    .fat-timeline-bar {
        padding: 0 16px;
        flex-direction: column;
        min-height: auto;
    }

    .fat-timeline-bar__label {
        border-right: none;
        border-bottom: 1px solid var(--fat-border, #2a2a2a);
        padding: 14px 0;
        padding-right: 0;
    }

    .fat-timeline-bar__track {
        padding: 10px 0;
        gap: 0;
    }

    .fat-hl-item {
        padding: 8px 16px;
        border-right: 1px solid var(--fat-border, #2a2a2a);
        border-bottom: none;
    }

    .fat-hl-dot {
        display: none;
    }

    /* ── Bottom grid stacks ── */
    .fat-bottom-grid {
        grid-template-columns: 1fr;
    }

    .fat-about,
    .fat-speaker-card,
    .fat-quote-block {
        padding: 24px 20px;
        border-right: none;
        border-bottom: 1px solid var(--fat-border, #2a2a2a);
    }

    .fat-quote-block {
        border-bottom: none;
    }

    .fat-intro-desc {
        max-width: 100%;
    }
}

/* ================================================================
   TABLET (769px – 1024px)
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

    .fat-hero {
        grid-template-columns: 52px 1fr;
    }

    .fat-hero__media {
        display: none; /* hide media panel on tablet, show full text */
    }

    .fat-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fat-quote-block {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid var(--fat-border, #2a2a2a);
    }

    .fat-timeline-bar__label {
        font-size: 8px;
        padding-right: 16px;
    }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fatFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fat-wrapper {
    animation: fatFadeIn 0.4s ease both;
}

.fat-play-btn__icon svg {
    transition: transform 0.2s ease;
}

.fat-play-btn:hover .fat-play-btn__icon svg {
    transform: scale(1.1);
}

/* ── Elementor Editor helper ── */
.elementor-editor-active .fat-player {
    display: none !important;
}
