/* ═══════════════════════════════════════════════════
   Gazete32 Podcast CSS v2
   ═══════════════════════════════════════════════════ */

/* ── DEFAULTS ── */
:root {
    --g32-accent: #c0392b;
    --g32-accent-dark: #a93226;
    --g32-bg: #0f0f13;
    --g32-surface: #1a1a22;
    --g32-surface2: #22222e;
    --g32-border: #2d2d3d;
    --g32-text: #f0f0f5;
    --g32-muted: #8888a0;
    --g32-card-radius: 14px;
}

/* ── LIGHT MODE ──
   Site "html.ht-light-mode-pre" class'ını (temanın kendi FOUC-önleme
   inline script'inden, localStorage 'ht_color_mode' değerine göre)
   <html> etiketine ekliyor. "ht-light-mode" (pre'siz) versiyonu da,
   toggle butonunun sayfa yenilemeden anlık değiştirdiği olası class
   adı olduğu için ekleniyor. Bu class tabanlı seçiciler düz :root'tan
   daha yüksek specificity'ye sahip olduğu için, archive-podcast.php /
   single-podcast.php içindeki tekrar eden dark :root tanımlarını da
   ezip doğru rengi garanti ediyor. */
html.ht-light-mode-pre, html.ht-light-mode, body.ht-light-mode {
    --g32-bg: #f5f5f7;
    --g32-surface: #ffffff;
    --g32-surface2: #f0f0f3;
    --g32-border: #e2e2e8;
    --g32-text: #1a1a1f;
    --g32-muted: #6b6b78;
}
html.ht-light-mode-pre .g32-hero-bg,
html.ht-light-mode .g32-hero-bg,
body.ht-light-mode .g32-hero-bg {
    background: linear-gradient(135deg, #fdf5f4 0%, #fbeae8 50%, #f7f0f5 100%);
}

/* ── HERO ── */
.g32-podcast-page { background: var(--g32-bg); min-height: 80vh; }
.g32-hero { position: relative; padding: 60px 0 48px; overflow: hidden; }
.g32-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0f0f13 0%, #1a0a0c 50%, #0a0a15 100%);
}
.g32-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--g32-accent)22 0%, transparent 70%);
}
.g32-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.g32-hero-inner { text-align: center; }
.g32-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--g32-accent)22; border: 1px solid var(--g32-accent)44;
    color: var(--g32-accent); padding: 6px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-bottom: 20px;
}
.g32-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--g32-accent);
    box-shadow: 0 0 0 0 var(--g32-accent);
    animation: g32pulse 1.5s infinite;
}
@keyframes g32pulse {
    0%   { box-shadow: 0 0 0 0 var(--g32-accent)88; }
    70%  { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.g32-hero-title { font-size: clamp(28px, 5vw, 52px); font-weight: 800; color: var(--g32-text); margin: 0 0 12px; line-height: 1.1; }
.g32-hero-desc { font-size: 16px; color: var(--g32-muted); max-width: 600px; margin: 0 auto 28px; line-height: 1.6; }
.g32-hero-stats { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 28px; }
.g32-stat { display: flex; flex-direction: column; align-items: center; }
.g32-stat strong { font-size: 28px; font-weight: 800; color: var(--g32-text); }
.g32-stat span { font-size: 12px; color: var(--g32-muted); text-transform: uppercase; letter-spacing: .06em; }
.g32-stat-divider { width: 1px; height: 40px; background: var(--g32-border); }

/* ── PLATFORM BUTTONS ── */
.g32-platforms { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.g32-platforms-label { font-size: 13px; color: var(--g32-muted); }
.g32-platform-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 20px;
    background: var(--g32-surface2); border: 1px solid var(--g32-border);
    color: var(--g32-text); font-size: 13px; font-weight: 500;
    text-decoration: none; transition: all .2s;
}
.g32-platform-btn:hover { border-color: var(--g32-accent); color: var(--g32-accent); transform: translateY(-1px); }
.g32-platform-spotify:hover { border-color: #1DB954; color: #1DB954; }
.g32-platform-apple:hover   { border-color: #fc3c44; color: #fc3c44; }

/* ── FILTER BAR ── */
.g32-filter-bar { background: var(--g32-surface); border-bottom: 1px solid var(--g32-border); padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.g32-filter-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.g32-filter-cats { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.g32-cat-btn {
    padding: 6px 14px; border-radius: 20px;
    background: transparent; border: 1px solid var(--g32-border);
    color: var(--g32-muted); font-size: 13px; cursor: pointer;
    text-decoration: none; transition: all .18s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 5px;
}
.g32-cat-btn:hover, .g32-cat-btn.active {
    background: var(--g32-accent); border-color: var(--g32-accent);
    color: #fff;
}
.g32-cat-count { background: rgba(255,255,255,.2); border-radius: 10px; padding: 0 6px; font-size: 11px; }
.g32-filter-search { flex-shrink: 0; }
.g32-search-input {
    background: var(--g32-surface2); border: 1px solid var(--g32-border);
    color: var(--g32-text); border-radius: 20px; padding: 7px 16px;
    font-size: 13px; width: 220px; transition: border-color .2s;
}
.g32-search-input:focus { outline: none; border-color: var(--g32-accent); }

/* ── GRID / LIST ── */
.g32-main { padding: 32px 0 100px; }
.g32-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.g32-layout-list { display: flex; flex-direction: column; gap: 14px; }

/* ── PODCAST CARD ── */
.g32-podcast-card {
    background: var(--g32-surface); border: 1px solid var(--g32-border);
    border-radius: var(--g32-card-radius); overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    cursor: pointer;
}
.g32-podcast-card:hover {
    transform: translateY(-3px);
    border-color: var(--g32-accent)88;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.g32-podcast-card.g32-card-playing {
    border-color: var(--g32-accent);
    box-shadow: 0 0 0 1px var(--g32-accent), 0 8px 30px var(--g32-accent)33;
}
.g32-card-thumb { position: relative; padding-top: 56.25%; overflow: hidden; }
.g32-layout-list .g32-card-thumb { padding-top: 0; width: 120px; flex-shrink: 0; }
.g32-card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g32-podcast-card:hover .g32-card-thumb img { transform: scale(1.04); }
.g32-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 12px;
    opacity: 0; transition: opacity .2s;
}
.g32-podcast-card:hover .g32-card-overlay, .g32-podcast-card.g32-card-playing .g32-card-overlay { opacity: 1; }

.g32-play-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--g32-accent); border: none;
    color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, background .15s; margin-right: 8px;
}
.g32-play-btn:hover { transform: scale(1.1); background: var(--g32-accent-dark); }
.g32-card-playing .g32-play-btn { background: #fff; color: var(--g32-accent); }

.g32-featured-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--g32-accent); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px;
    letter-spacing: .05em;
}

.g32-card-body { padding: 14px 16px; }
.g32-card-cat {
    font-size: 11px; font-weight: 600; color: var(--g32-accent);
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.g32-card-title { font-size: 15px; font-weight: 700; color: var(--g32-text); margin-bottom: 6px; line-height: 1.35; }
.g32-card-excerpt { font-size: 13px; color: var(--g32-muted); line-height: 1.5; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.g32-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g32-card-duration, .g32-card-ep, .g32-card-plays {
    font-size: 12px; color: var(--g32-muted);
    display: flex; align-items: center; gap: 4px;
}
.g32-card-actions { margin-left: auto; display: flex; gap: 8px; }
.g32-favorite-btn {
    background: none; border: none; cursor: pointer; font-size: 16px;
    padding: 2px; transition: transform .2s;
}
.g32-favorite-btn:hover { transform: scale(1.2); }
.g32-card-link { font-size: 12px; color: var(--g32-accent); text-decoration: none; }
.g32-card-link:hover { text-decoration: underline; }

/* Liste modu */
.g32-layout-list .g32-podcast-card { display: flex; flex-direction: row; align-items: stretch; }
.g32-layout-list .g32-card-thumb { border-radius: var(--g32-card-radius) 0 0 var(--g32-card-radius); height: 120px; }
.g32-layout-list .g32-card-thumb img { position: static; height: 120px; width: 120px; border-radius: var(--g32-card-radius) 0 0 var(--g32-card-radius); }
.g32-layout-list .g32-card-body { flex: 1; padding: 12px 16px; }
.g32-layout-list .g32-card-overlay { display: none; }

/* ── PAGINATION ── */
.g32-pagination { text-align: center; margin-top: 36px; }
.g32-load-more {
    background: var(--g32-surface2); border: 1px solid var(--g32-border);
    color: var(--g32-text); padding: 12px 36px; border-radius: 30px;
    font-size: 14px; cursor: pointer; transition: all .2s;
}
.g32-load-more:hover { border-color: var(--g32-accent); color: var(--g32-accent); }

/* ── NO RESULTS ── */
.g32-no-results {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
    color: var(--g32-muted);
}
.g32-no-results span { font-size: 40px; display: block; margin-bottom: 12px; }

/* ── STICKY PLAYER ── */
.g32-sticky-player {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--g32-surface);
    border-top: 1px solid var(--g32-border);
    z-index: 9999;
    padding: 10px 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
.g32-sticky-inner {
    display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
}
.g32-sticky-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; position: relative; }
.g32-sticky-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g32-sticky-info { flex: 0 0 180px; min-width: 0; overflow: hidden; }
.g32-sticky-title { font-size: 13px; font-weight: 600; color: var(--g32-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g32-sticky-cat   { font-size: 11px; color: var(--g32-accent); }
.g32-sticky-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.g32-ctrl-btn {
    background: none; border: none; color: var(--g32-text);
    cursor: pointer; padding: 6px; border-radius: 50%;
    transition: background .15s; display: flex; align-items: center;
}
.g32-ctrl-btn:hover { background: var(--g32-surface2); }
.g32-play-main {
    width: 40px; height: 40px;
    background: var(--g32-accent) !important;
    color: #fff !important;
}
.g32-play-main:hover { background: var(--g32-accent-dark) !important; }
.g32-sticky-progress { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.g32-time { font-size: 11px; color: var(--g32-muted); flex-shrink: 0; }
.g32-progress-bar, .g32-volume-bar {
    -webkit-appearance: none; appearance: none;
    height: 4px; border-radius: 2px;
    background: var(--g32-border); cursor: pointer;
    outline: none;
}
.g32-progress-bar { flex: 1; }
.g32-progress-bar::-webkit-slider-thumb, .g32-volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px;
    border-radius: 50%; background: var(--g32-accent); cursor: pointer;
}
.g32-volume-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.g32-volume-bar { width: 70px; }
.g32-vol-icon { font-size: 14px; }
.g32-speed-wrap { flex-shrink: 0; }
.g32-speed-select {
    background: var(--g32-surface2); border: 1px solid var(--g32-border);
    color: var(--g32-text); border-radius: 6px; padding: 3px 6px;
    font-size: 12px; cursor: pointer;
}
.g32-sticky-close {
    background: none; border: none; color: var(--g32-muted);
    cursor: pointer; font-size: 16px; padding: 6px; flex-shrink: 0;
    transition: color .15s;
}
.g32-sticky-close:hover { color: var(--g32-text); }

/* ── SHORTCODE WRAP ── */
.g32-shortcode-wrap { padding: 0; }
.g32-sc-header { margin-bottom: 24px; }
.g32-sc-title { font-size: 26px; font-weight: 800; color: var(--g32-text); margin: 0 0 8px; }
.g32-sc-desc { color: var(--g32-muted); }
.g32-sc-filter { position: relative; top: 0; margin-bottom: 16px; }

/* ── SINGLE PLAYER WIDGET ── */
.g32-single-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 768px) {
    .g32-single-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.g32-player-widget {
    background: var(--g32-surface); border: 1px solid var(--g32-border);
    border-radius: var(--g32-card-radius); padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.g32-pw-cover { width: 100%; max-width: 200px; border-radius: 10px; margin: 0 auto; display: block; }
.g32-pw-info { text-align: center; }
.g32-pw-title { font-size: 16px; font-weight: 700; color: var(--g32-text); margin-bottom: 4px; }
.g32-pw-dur { font-size: 13px; color: var(--g32-muted); }
.g32-external-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--g32-accent); text-decoration: none; font-weight: 600;
}

/* ── FAVORILER ── */
.g32-login-notice { color: var(--g32-muted); padding: 20px; text-align: center; }
.g32-login-notice a { color: var(--g32-accent); }

/* ── MOBILE ── */
@media (max-width: 768px) {
    .g32-hero { padding: 36px 0 28px; }
    .g32-hero-stats { gap: 12px; }
    .g32-layout-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

    /* Filter bar mobil: kategoriler scroll, arama alta */
    .g32-filter-bar { padding: 10px 0; }
    .g32-filter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .g32-filter-cats {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .g32-filter-cats::-webkit-scrollbar { display: none; }
    .g32-cat-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .g32-filter-search { width: 100%; }
    .g32-search-input {
        width: 100%;
        box-sizing: border-box;
    }

    .g32-sticky-info { flex: 0 0 120px; }
    .g32-volume-wrap { display: none; }
    .g32-speed-wrap { display: none; }
    .g32-time { display: none; }
    .g32-sticky-progress { gap: 6px; }
    #g32-prev-track, #g32-next-track { display: none; }
}
@media (max-width: 480px) {
    .g32-sticky-inner { gap: 8px; }
    .g32-sticky-info { display: none; }
    .g32-platforms { gap: 6px; }
    .g32-platform-btn { padding: 6px 12px; font-size: 12px; }
}

/* ── ORTAK ÖZEL SES OYNATICI (tekil sayfa + [g32_podcast_player] shortcode) ──
   Bu blok, tarayıcı native <audio controls> yerine kullanılan, tüm
   tarayıcılarda birebir aynı görünen custom player'ın stilidir. Tek yerden
   yönetildiği için tekil bölüm sayfası ile shortcode player'ı senkron kalır. */
.g32-inline-player, .g32-pw-custom-player {
    background: var(--g32-surface);
    border: 1px solid var(--g32-border);
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
}
.g32-ip-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.g32-ip-thumb {
    width: 48px; height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.g32-ip-info { flex: 1; min-width: 0; }
.g32-ip-title {
    font-size: 13px; font-weight: 700;
    color: var(--g32-text) !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g32-ip-sub { font-size: 11px; color: var(--g32-muted) !important; margin-top: 2px; }

.g32-ip-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.g32-ip-play {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--g32-accent);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform .15s, opacity .15s;
}
.g32-ip-play:hover { opacity: .85; transform: scale(1.05); }
.g32-ip-play svg { fill: #fff; }
.g32-ip-skip {
    background: none; border: none; cursor: pointer;
    color: var(--g32-muted) !important; padding: 6px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s;
}
.g32-ip-skip:hover { color: var(--g32-text) !important; }
.g32-ip-skip svg { fill: currentColor; }
.g32-ip-spacer { flex: 1; }
.g32-ip-speed {
    background: var(--g32-surface);
    border: 1px solid var(--g32-border);
    color: var(--g32-text) !important;
    border-radius: 6px;
    font-size: 12px; padding: 4px 6px; cursor: pointer;
}

.g32-ip-progress-wrap { display: flex; align-items: center; gap: 8px; }
.g32-ip-time { font-size: 11px; color: var(--g32-muted) !important; flex-shrink: 0; min-width: 34px; }
.g32-ip-time.right { text-align: right; }
.g32-ip-bar {
    flex: 1; height: 4px;
    -webkit-appearance: none; appearance: none;
    background: var(--g32-border); border-radius: 2px; cursor: pointer;
    outline: none;
}
.g32-ip-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--g32-accent);
    cursor: pointer;
}
.g32-ip-bar::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--g32-accent);
    border: none; cursor: pointer;
}
.g32-ip-vol { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.g32-ip-vol-icon { font-size: 14px; color: var(--g32-muted) !important; cursor: pointer; flex-shrink: 0; }
.g32-ip-vol-bar {
    flex: 1; height: 3px;
    -webkit-appearance: none; appearance: none;
    background: var(--g32-border); border-radius: 2px; cursor: pointer;
    outline: none;
}
.g32-ip-vol-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%; background: var(--g32-accent); cursor: pointer;
}
