/* ==========================================================================
   COOKIE-CONSENT.CSS — Çerez bildirimi banner ve ayarlar paneli
   KVKK/GDPR uyumlu çerez onay sistemi.
   ========================================================================== */

/* --- Banner (alt kısımda sabit bar) --- */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f5f9;
    padding: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.cc-banner.cc-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cc-banner.cc-hiding {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cc-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cc-banner-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary, #0b3d7a), var(--color-accent, #0ea5e9));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cc-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}
.cc-banner-text a {
    color: var(--color-accent, #0ea5e9);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-banner-text a:hover {
    color: #38bdf8;
}

.cc-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

/* --- Butonlar --- */
.cc-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1.4;
}
.cc-btn-accept {
    background: linear-gradient(135deg, var(--color-primary, #0b3d7a), var(--color-accent, #0ea5e9));
    color: #fff;
}
.cc-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}
.cc-btn-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}
.cc-btn-reject:hover {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}
.cc-btn-settings {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}
.cc-btn-settings:hover {
    background: #1e293b;
    color: #fff;
    border-color: #64748b;
}

/* --- Ayarlar Modalı (overlay) --- */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cc-modal-overlay.cc-modal-open {
    opacity: 1;
    pointer-events: auto;
}

.cc-modal {
    background: #0f172a;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #e2e8f0;
}
.cc-modal-overlay.cc-modal-open .cc-modal {
    transform: translateY(0);
}

.cc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}
.cc-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #f8fafc;
}
.cc-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.cc-modal-close:hover {
    background: #1e293b;
    color: #fff;
    border-color: #64748b;
}

.cc-modal-body {
    padding: 20px 28px 28px;
}
.cc-modal-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* --- Çerez Kategorileri --- */
.cc-category {
    background: #1e293b;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 1px solid #334155;
    transition: border-color 0.2s ease;
}
.cc-category:hover {
    border-color: #475569;
}
.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cc-category-info {
    flex: 1;
}
.cc-category-name {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}
.cc-category-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* --- Toggle Switch --- */
.cc-toggle {
    position: relative;
    flex-shrink: 0;
}
.cc-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-toggle-track {
    display: block;
    width: 48px;
    height: 26px;
    background: #334155;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}
.cc-toggle input:checked + .cc-toggle-track {
    background: linear-gradient(135deg, var(--color-primary, #0b3d7a), var(--color-accent, #0ea5e9));
}
.cc-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.cc-toggle input:checked + .cc-toggle-track::after {
    transform: translateX(22px);
}
.cc-toggle input:disabled + .cc-toggle-track {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Required badge */
.cc-required-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--color-accent, #0ea5e9);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

/* --- Modal Footer Butonları --- */
.cc-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.cc-modal-actions .cc-btn {
    flex: 1;
    text-align: center;
}

/* --- Mini Buton (consent verildikten sonra) --- */
.cc-mini-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cc-mini-btn.cc-mini-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.cc-mini-btn:hover {
    background: #1e293b;
    color: #fff;
    border-color: #64748b;
    transform: scale(1.08);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cc-banner-inner {
        flex-direction: column;
        padding: 18px 16px;
        gap: 14px;
        text-align: center;
    }
    .cc-banner-icon {
        display: none;
    }
    .cc-banner-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .cc-btn {
        width: 100%;
        padding: 12px 16px;
    }
    .cc-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
    .cc-modal-header {
        padding: 20px 16px 0;
    }
    .cc-modal-body {
        padding: 16px 16px 20px;
    }
    .cc-modal-actions {
        flex-direction: column;
    }
    .cc-mini-btn {
        bottom: 14px;
        left: 14px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
