/* ============================================================
   Çerez Banner & Tercih Modalı (KVKK/GDPR — Faz 3)
   - Marka renklerinde + DM Sans, radius 12/16
   - Banner sticky alt; modal ortalanmış overlay
   - Reduced motion ve mobile uyumlu
   ============================================================ */

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9500;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: space-between;
    animation: cookieSlideUp 250ms ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner__body {
    flex: 1 1 360px;
    min-width: 0;
}

.cookie-banner__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1c18;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.cookie-banner__icon {
    color: #9E7A38;
    flex-shrink: 0;
}

.cookie-banner__desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}
.cookie-banner__desc a {
    color: #2D5F2D;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.cookie-btn--primary {
    background: #2D5F2D;
    color: #fff;
}
.cookie-btn--primary:hover:not(:disabled) {
    background: #244c24;
}
.cookie-btn--secondary {
    background: #fff;
    color: #1a1c18;
    border-color: #d1d5db;
}
.cookie-btn--secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}
.cookie-btn--ghost {
    background: transparent;
    color: #2D5F2D;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-btn--ghost:hover:not(:disabled) {
    color: #244c24;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }
    .cookie-banner__body {
        flex-basis: auto;
    }
    .cookie-banner__title {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    .cookie-banner__desc {
        font-size: 0.82rem;
        line-height: 1.45;
    }
    .cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.5rem;
    }
    .cookie-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        min-height: 42px;
    }
}

/* ============================================================
   Tercih Modalı (Yönet)
   ============================================================ */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: fadeIn 200ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cookie-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding: 1.75rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.cookie-modal__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1c18;
    margin: 0 0 0.5rem;
}

.cookie-modal__intro {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.cookie-modal__category {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    align-items: start;
}
.cookie-modal__category--locked {
    background: #fafafa;
}

.cookie-modal__category-title {
    font-weight: 600;
    color: #1a1c18;
    margin: 0 0 0.3rem;
    font-size: 0.96rem;
}
.cookie-modal__category-desc {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}

/* Toggle switch (mevcut tasarım dilinde) */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}
.cookie-toggle__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.cookie-toggle input:checked + .cookie-toggle__slider {
    background: #2D5F2D;
}
.cookie-toggle input:checked + .cookie-toggle__slider::before {
    transform: translateX(20px);
}
.cookie-toggle input:disabled + .cookie-toggle__slider {
    background: #9E7A38;
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 600px) {
    .cookie-modal { padding: 1.25rem; border-radius: 12px; }
    .cookie-modal__actions { flex-direction: column-reverse; align-items: stretch; }
    .cookie-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { animation: none; }
    .cookie-modal-overlay { animation: none; }
    .cookie-toggle__slider, .cookie-toggle__slider::before { transition: none; }
}
