/* ==========================================================================
   Cerez riza bilesenleri (SPK VII-128.10 / KVKK)
   Buton eskitligi zorunlu: Kabul / Reddet / Tercihler ayni renk, boyut, punto.
   ========================================================================== */

.phc-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    font-family: 'Manrope', sans-serif;
}

.phc-bar.is-visible { transform: translateY(0); }

.phc-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.phc-bar-copy { flex: 1 1 320px; }

.phc-bar-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.phc-bar-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
}

.phc-link {
    color: #93c5fd;
    text-decoration: underline;
}

.phc-link:hover { color: #bfdbfe; }

.phc-bar-actions,
.phc-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Tum butonlar ayni gorsel agirlik — yonlendirici tasarim yok. */
.phc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #64748b;
    background: transparent;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.phc-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.phc-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* ---------- Tercih paneli ---------- */

.phc-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.phc-panel.is-visible { display: block; }

.phc-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.phc-panel-card {
    position: relative;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    margin: 5vh auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px 20px;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.phc-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.phc-panel-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.phc-panel-close {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.phc-panel-close:hover { color: #fff; }

.phc-panel-intro,
.phc-panel-foot {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.phc-panel-intro { margin: 0 0 16px; }
.phc-panel-foot { margin: 14px 0 0; }

.phc-cat {
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.phc-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}

.phc-cat-head input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.phc-cat-head input[type="checkbox"]:disabled { cursor: not-allowed; }

.phc-cat-name { flex: 1 1 auto; }

.phc-cat-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.phc-cat-desc {
    margin: 8px 0 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.phc-panel-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #1e293b;
}

/* ---------- Yuzen ikon (sag alt — WhatsApp butonu sol altta) ---------- */

.phc-icon {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9991;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s, background 0.2s;
}

.phc-icon:hover {
    transform: translateY(-2px);
    background: #1e293b;
    color: #fff;
}

.phc-icon:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

body.cookie-bar-visible .phc-icon { bottom: 90px; }

/* ---------- Riza oncesi engellenen gomulu icerik ---------- */

.phc-embed { position: relative; }

.phc-embed-placeholder { display: none; }

.phc-embed-blocked .phc-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 18px;
    box-sizing: border-box;
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    color: #334155;
    font-family: 'Manrope', sans-serif;
}

.phc-embed-blocked iframe { display: none; }

.phc-embed-placeholder p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 42ch;
}

.phc-embed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.phc-embed-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #64748b;
    background: transparent;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.phc-embed-btn:hover { background: rgba(15, 23, 42, 0.06); }

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
    .phc-bar-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px 16px;
        gap: 12px;
    }

    .phc-bar-title { font-size: 0.94rem; }

    .phc-bar-text { font-size: 0.8rem; }

    /* Reddet secenegi ekran disina tasmamali (yonerge §8). */
    .phc-bar-actions { justify-content: stretch; }

    .phc-bar-actions .phc-btn {
        flex: 1 1 100%;
        padding: 11px 14px;
        font-size: 0.82rem;
    }

    .phc-panel-card {
        margin: 0;
        max-width: none;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        padding: 18px 16px 20px;
    }

    .phc-panel-actions .phc-btn { flex: 1 1 100%; }

    .phc-icon {
        bottom: 22px;
        right: 18px;
    }

    body.cookie-bar-visible .phc-icon { bottom: 210px; }
}
