/* KVKK Çerez Bandı */
#cookieBar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
    background: #1a1a1a; color: #eee; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; font-size: 13px; line-height: 1.5;
}
#cookieBar a { color: #5bc0de; text-decoration: underline; }
#cookieBar .cb-btns { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
#cookieBar button {
    padding: 7px 18px; border: none; cursor: pointer;
    font-size: 13px; font-weight: bold; border-radius: 4px; min-width: 110px;
}
#cbAcceptAll { background: #0071bc; color: #fff; }
#cbRejectAll { background: #555; color: #fff; }
#cbSettings  { background: transparent; color: #ccc; border: 1px solid #777 !important; }
#cbAcceptAll:hover { background: #005a96; }
#cbRejectAll:hover { background: #333; }
#cbSettings:hover  { background: #333; }

/* Tercih Paneli Overlay */
#cookieOverlay {
    display: none; position: fixed; inset: 0; z-index: 100000;
    background: rgba(0,0,0,0.6); align-items: center; justify-content: center;
}
#cookieOverlay.active { display: flex; }
#cookiePanel {
    background: #fff; border-radius: 8px; max-width: 600px; width: 94%;
    max-height: 90vh; overflow-y: auto; padding: 28px 24px; position: relative;
    font-size: 14px; color: #333;
}
#cookiePanel h2 { font-size: 18px; margin-bottom: 6px; color: #0071bc; }
#cookiePanel h2 small { font-size: 12px; color: #888; display: block; margin-top: 2px; }
.cp-category {
    border: 1px solid #e0e0e0; border-radius: 6px;
    padding: 14px 16px; margin-top: 14px;
}
.cp-category-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px;
}
.cp-category-header strong { font-size: 14px; }
.cp-category p { font-size: 12px; color: #666; margin: 8px 0 0; line-height: 1.5; }

/* Toggle Switch */
.cp-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cp-slider {
    position: absolute; inset: 0; background: #ccc;
    border-radius: 24px; transition: .3s; cursor: pointer;
    pointer-events: none;
}
.cp-slider:before {
    content: ""; position: absolute; width: 18px; height: 18px;
    left: 3px; bottom: 3px; background: #fff;
    border-radius: 50%; transition: .3s;
}
.cp-toggle input:checked + .cp-slider { background: #0071bc; }
.cp-toggle input:checked + .cp-slider:before { transform: translateX(20px); }
.cp-toggle input:disabled + .cp-slider { opacity: 0.6; cursor: not-allowed; }

/* Panel Alt Butonlar */
.cp-footer { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.cp-footer button {
    flex: 1; padding: 9px 14px; border: none; cursor: pointer;
    font-size: 13px; font-weight: bold; border-radius: 4px; min-width: 120px;
}
#cpSaveAll    { background: #0071bc; color: #fff; }
#cpRejectAll  { background: #555; color: #fff; }
#cpSaveChoice { background: #28a745; color: #fff; }
#cpSaveAll:hover    { background: #005a96; }
#cpRejectAll:hover  { background: #333; }
#cpSaveChoice:hover { background: #1e7e34; }

/* Çerez Ayarları Tetikleyici İkon */
#cookieTrigger {
    position: fixed; bottom: 14px; left: 90px; z-index: 99998;
    background: #0071bc; color: #fff; border: none; border-radius: 50%;
    width: 38px; height: 38px; font-size: 18px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
#cookieTrigger:hover { background: #005a96; }
#cookieTrigger.visible { display: flex; }

/* YouTube / Harita Placeholder */
.cookie-placeholder {
    background: #f0f0f0; border: 2px dashed #ccc; border-radius: 6px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 30px 20px;
    color: #666; font-size: 13px; min-height: 200px; width: 100%;
}
.cookie-placeholder i { font-size: 36px; color: #bbb; margin-bottom: 10px; }
.cookie-placeholder button {
    margin-top: 12px; padding: 7px 18px; background: #0071bc;
    color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px;
}
.cookie-placeholder button:hover { background: #005a96; }

@media (max-width: 575px) {
    #cookieBar { flex-direction: column; }
    #cookieBar .cb-btns { width: 100%; }
    #cookieBar button { flex: 1; }
    #cookieTrigger { left: 56px; }
}
