/* =====================================================
   KVKK COOKIE BANNER - YASAL UYUMLULUK
   ===================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 3px solid #1e4a6e;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #5ba3f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text h3::before {
    content: "🍪";
    font-size: 24px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.cookie-banner-text a {
    color: #5ba3f5;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-banner-text a:hover {
    color: #7bb5f7;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #1e4a6e 0%, #3d7cc9 100%);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #3d7cc9 0%, #5ba3f5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 74, 110, 0.5);
}

.cookie-btn-reject {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid #666;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #999;
}

.cookie-btn-settings {
    background: transparent;
    color: #5ba3f5;
    border: 2px solid #5ba3f5;
}

.cookie-btn-settings:hover {
    background: rgba(91, 163, 245, 0.1);
    border-color: #7bb5f7;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.cookie-settings-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-settings-header {
    padding: 24px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.cookie-close-btn:hover {
    color: #1e4a6e;
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category h3 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
}

.cookie-category p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #1e4a6e;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 24px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 14px;
        border-top-width: 2px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .cookie-banner-text h3 {
        font-size: 15px;
    }
    
    .cookie-banner-text p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .cookie-banner-buttons {
        flex-direction: row;  /* Yan yana daha kompakt */
        gap: 8px;
    }
    
    .cookie-btn {
        flex: 1;  /* Eşit genişlik */
        text-align: center;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .cookie-settings-content {
        max-height: 90vh;
    }
    
    .cookie-settings-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-text h3 {
        font-size: 14px;
    }
    
    .cookie-banner-text h3::before {
        font-size: 20px;
    }
    
    .cookie-banner-text p {
        font-size: 11px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;  /* Küçük mobilde alt alta */
        gap: 6px;
    }
    
    .cookie-btn {
        padding: 10px 14px;
        font-size: 12px;
        width: 100%;
    }
    
    .cookie-settings-header {
        padding: 18px;
    }
    
    .cookie-settings-body {
        padding: 18px;
    }
    
    .cookie-category {
        padding: 12px;
        margin-bottom: 15px;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

