/* =============================================
   ÇEREZ POLİTİKASI POPUP - MODERN TASARIM
   ============================================= */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    display: none;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.show {
    display: block;
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.cookie-icon {
    flex-shrink: 0;
    font-size: 35px;
    color: var(--primary);
    background: rgba(26, 115, 232, 0.1);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

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

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn i {
    font-size: 12px;
}

.cookie-settings {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}

.cookie-settings:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cookie-reject {
    background: #f1f3f5;
    color: var(--text-dark);
}

.cookie-reject:hover {
    background: #e9ecef;
}

.cookie-accept {
    background: var(--primary);
    color: white;
}

.cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Mobil Uyumlu */
@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .cookie-icon {
        margin: 0 auto;
    }
    
    .cookie-text {
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}

/* Dark Mode */
body.dark-mode .cookie-consent {
    background: var(--dark-bg-card);
    border-top-color: var(--dark-primary);
}

body.dark-mode .cookie-text h4 {
    color: var(--dark-text);
}

body.dark-mode .cookie-text p {
    color: var(--dark-text-muted);
}

body.dark-mode .cookie-icon {
    background: rgba(74, 158, 255, 0.15);
    color: var(--dark-primary);
}

body.dark-mode .cookie-settings {
    border-color: var(--dark-border);
    color: var(--dark-text-muted);
}

body.dark-mode .cookie-settings:hover {
    border-color: var(--dark-primary);
    color: var(--dark-primary);
}

body.dark-mode .cookie-reject {
    background: var(--dark-bg-secondary);
    color: var(--dark-text);
}

body.dark-mode .cookie-accept {
    background: var(--dark-primary);
}

/* =============================================
   ÇEREZ AYARLARI MODALI
   ============================================= */
body.cookie-modal-open {
    overflow: hidden;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
}

.cookie-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #eef2f7;
}

.cookie-modal-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 22px;
    line-height: 1.2;
}

.cookie-modal-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
}

.cookie-modal-close:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.cookie-modal-body {
    padding: 20px 24px;
}

.cookie-modal-intro {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.cookie-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 0;
    border-top: 1px solid #eef2f7;
}

.cookie-pref-info {
    min-width: 0;
    flex: 1;
}

.cookie-pref-title {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.cookie-pref-desc {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.cookie-pref-fixed {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}

.cookie-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: .2s ease;
}

.cookie-switch-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, .25);
    transition: .2s ease;
}

.cookie-switch input:checked + .cookie-switch-slider {
    background: var(--primary);
}

.cookie-switch input:checked + .cookie-switch-slider::before {
    transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch-slider {
    outline: 3px solid rgba(26, 115, 232, .25);
    outline-offset: 2px;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #eef2f7;
}

.cookie-modal-btn {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-modal-btn.secondary {
    background: #fff;
    border-color: #dbe2ea;
    color: #334155;
}

.cookie-modal-btn.primary {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .cookie-modal-dialog,
body.dark-mode .cookie-modal-close,
body.dark-mode .cookie-modal-btn.secondary {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .cookie-modal-header,
body.dark-mode .cookie-pref-row,
body.dark-mode .cookie-modal-footer {
    border-color: #1e293b;
}

body.dark-mode .cookie-modal-header h3,
body.dark-mode .cookie-pref-title {
    color: #f1f5f9;
}

body.dark-mode .cookie-modal-intro,
body.dark-mode .cookie-pref-desc {
    color: #94a3b8;
}

body.dark-mode .cookie-modal-close,
body.dark-mode .cookie-modal-btn.secondary {
    color: #cbd5e1;
}

body.dark-mode .cookie-pref-fixed {
    background: rgba(59, 130, 246, .14);
    color: #93c5fd;
}

@media (max-width: 640px) {
    .cookie-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .cookie-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 16px 16px 12px 12px;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cookie-pref-row {
        align-items: flex-start;
        gap: 14px;
    }

    .cookie-modal-footer {
        flex-direction: column-reverse;
    }

    .cookie-modal-btn {
        width: 100%;
    }
}
