/**
 * TerfiGYS - ZekAI Sesli Dersler (Podcast) Modüler CSS (assets/css/pages/podcast.css)
 */

/* Sayfa Gövdesi Kapsayıcısı */
/* Hero Header Kartı (category_documents.php 1:1 Birebir Aynı site.css Mimarisi) */
.gd-page-header {
    margin-bottom: 0 !important;
}

/* İnce Kompakt Sesli Dersler Hero Kartı (Eski İnce Görünüm) */
.gd-podcast-hero-compact {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.gd-podcast-hero-compact .gd-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3e8ff;
    color: #f45037;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-podcast-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-podcast-hero-compact .gd-page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ── STANDART ARAMA VE SEGMENTED KAPSÜL FİLTRELEME ÇUBUĞU (Kural 23 - category_documents.css 1:1 AYNI) ───────── */
.gd-mev-controls {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gd-mev-search-box {
    position: relative !important;
    flex: 1 !important;
    min-width: 260px !important;
}

.gd-mev-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: none !important;
}

.gd-mev-search-input {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 16px 10px 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.gd-mev-search-input:focus {
    outline: none !important;
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.gd-mev-filter-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 10px !important;
}

.gd-mev-filter-btn {
    border: none !important;
    background: transparent !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.gd-mev-filter-btn:hover {
    color: #0f172a !important;
}

.gd-mev-filter-btn.active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

@media (max-width: 768px) {
    .gd-mev-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 12px !important;
    }

    .gd-mev-search-box {
        width: 100% !important;
    }

    .gd-mev-filter-group {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .gd-mev-filter-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 12.5px !important;
    }
}

/* Podcast Liste Izgarası */
.gd-pod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.gd-pod-card {
    background: #faf5ff;
    border-radius: 14px;
    border: 1px solid #e9d5ff;
    border-bottom: 3px solid #d8b4fe;
    padding: 18px;
    transition: all 0.2s ease;
    display: flex;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.gd-pod-card:hover {
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.12);
    transform: translateY(-2px);
    border-color: #c084fc;
}

.gd-pod-card.playing {
    background: #f3e8ff !important;
    border-color: #a855f7 !important;
    border-bottom: 3px solid #7c3aed !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18) !important;
}

.gd-pod-card.playing .gd-pod-idx {
    color: #7c3aed !important;
    opacity: 1 !important;
}

.gd-pod-card.playing .gd-pod-play-icon {
    color: #7c3aed !important;
    transform: scale(1.15);
}

.gd-pod-idx {
    font-size: 1.4rem;
    font-weight: 900;
    color: #7c3aed;
    opacity: 0.25;
    min-width: 32px;
    border-right: 2px solid #e9d5ff;
    padding-right: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.gd-pod-info {
    flex: 1;
    min-width: 0;
}

.gd-pod-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 6px;
}

.gd-pod-meta {
    font-size: 12px;
    color: #6b21a8;
    border-top: 1px dashed rgba(107, 33, 168, 0.15);
    padding-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gd-pod-leg-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gd-pod-leg-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* ── Dinlendi / Dinlenmedi İşaretleme Butonu ───────── */
.gd-pod-check-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.gd-pod-check-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

.gd-pod-check-btn.listened {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border-color: #86efac !important;
}

.gd-pod-check-btn.listened:hover {
    background: #dcfce7 !important;
    border-color: #4ade80 !important;
}

.gd-pod-card.listened {
    border-left: 4px solid #16a34a;
}


.gd-pod-play-icon {
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    transition: transform 0.2s ease;
}

.gd-pod-card:hover .gd-pod-play-icon {
    transform: scale(1.15);
}

/* Kategori Kartları Izgarası (cat=0 modu - category_documents.css 1:1 AYNI) */
.gd-pod-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
}

@media (max-width: 992px) {
    .gd-pod-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gd-pod-cat-grid {
        grid-template-columns: 1fr;
    }
}

.gd-pod-cat-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.gd-pod-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(124, 58, 237, 0.12);
    border-color: #d8b4fe;
}

.gd-pod-cat-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.gd-pod-cat-icon {
    width: 44px;
    height: 44px;
    background: #f3e8ff;
    color: #f45037;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gd-pod-cat-card:hover .gd-pod-cat-icon {
    background: #7c3aed;
    color: #ffffff;
}

.gd-pod-cat-info {
    flex: 1;
    min-width: 0;
}

.gd-pod-cat-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 6px;
}

.gd-pod-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3e8ff;
    color: #6b21a8;
}

.gd-pod-cat-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #7c3aed;
}

/* Zippi Modern Responsive Modal */
.gd-pod-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.gd-pod-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gd-pod-modal {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.gd-pod-modal-overlay.active .gd-pod-modal {
    transform: scale(1);
}

.gd-pod-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.gd-pod-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.gd-pod-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
}

.gd-pod-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gd-pod-modal-list {
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-pod-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.gd-pod-modal-item:hover {
    background: #faf5ff;
    border-color: #d8b4fe;
    color: #7c3aed;
}

.gd-pod-modal-item.active {
    background: #7c3aed;
    color: #ffffff;
    border-color: #6b21a8;
}

/* Mevzuat Metni Modal Gövdesi */
.gd-leg-text-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
}

.gd-leg-text-body h4 {
    margin: 16px 0 8px 0;
    color: #7c3aed;
    font-size: 15px;
    font-weight: 800;
}

.gd-leg-text-body hr {
    border: 0;
    border-top: 1px dashed #e2e8f0;
    margin: 16px 0;
}

/* 🎵 1:1 EKRAN GÖRÜNTÜSÜ OYNATICI BARI STİLLERİ (EXACT PLAYER BAR) */
.gd-pod-player-bar {
    position: fixed;
    bottom: -140px;
    left: 0;
    right: 0;
    height: 85px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    visibility: hidden;
    box-sizing: border-box;
}

.gd-pod-player-bar.active {
    bottom: 0;
    visibility: visible;
}

.gd-player-controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Mor Parlak Dairesel Oynat Butonu */
.gd-player-play-btn-main {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gd-player-play-btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.45);
}

/* Açık Gri Dairesel Duraklat Butonu */
.gd-player-pause-btn-sub {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gd-player-pause-btn-sub:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Hız Dropdown Select */
.gd-player-speed-select {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    height: 34px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.gd-player-speed-select:focus {
    border-color: #7c3aed;
    background: #ffffff;
}

/* Bilgi ve Süre Kapsülü */
.gd-player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-player-title {
    font-size: 15px;
    font-weight: 850;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.gd-player-status-row {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gd-player-time-badge {
    background: #f3e8ff;
    color: #6b21a8;
    padding: 3px 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.gd-player-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    z-index: 10;
}

.gd-player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    width: 0%;
    transition: width 0.1s linear;
}

/* Boş Durum Kutu */
.gd-pod-empty-box {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    grid-column: 1 / -1;
}

.gd-pod-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #faf5ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-pod-empty-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.gd-pod-empty-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Responsive Kurallar */
@media (max-width: 768px) {
    .gd-page-header {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .gd-pod-player-bar {
        padding: 0 12px;
        height: 80px;
        gap: 8px;
    }

    .gd-player-controls-group {
        gap: 4px;
    }
}
