/* Çerez Onay Sistemi Stilleri */

#cookie-consent-banner {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
}

/* Toggle Switch Animasyonları */
.toggle-switch {
    transition: background-color 0.3s ease;
}

.toggle-thumb {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Animasyonları */
#cookie-settings-modal {
    animation: fadeIn 0.3s ease;
}

#cookie-settings-modal > div {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Tasarım */
@media (max-width: 640px) {
    #cookie-consent-banner .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #cookie-settings-modal > div {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

/* Hover Efektleri */
.toggle-switch:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Focus Stilleri - Erişilebilirlik */
button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

input[type="checkbox"]:focus + .toggle-switch {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Toast Bildirimleri */
.toast-notification {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Çerez Banner Gölge Efekti */
#cookie-consent-banner {
    box-shadow: 0 -10px 25px -3px rgba(0, 0, 0, 0.1), 0 -4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Çerez Kategorileri Kartları */
.cookie-category-card {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cookie-category-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background-color: rgba(55, 65, 81, 0.8);
}

/* Buton Hover Efektleri */
.cookie-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

/* Çerez İkonu Animasyonu */
.cookie-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -5px, 0);
    }
    70% {
        transform: translate3d(0, -3px, 0);
    }
    90% {
        transform: translate3d(0, -1px, 0);
    }
}

/* Dark Mode Uyumluluğu */
@media (prefers-color-scheme: dark) {
    #cookie-consent-banner {
        background-color: rgba(17, 24, 39, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Yüksek Kontrast Modu */
@media (prefers-contrast: high) {
    #cookie-consent-banner {
        border: 2px solid #ffffff;
    }
    
    .toggle-switch {
        border: 1px solid #ffffff;
    }
}

/* Hareket Azaltma Tercihi */
@media (prefers-reduced-motion: reduce) {
    #cookie-consent-banner,
    .toggle-switch,
    .toggle-thumb,
    .cookie-btn {
        transition: none;
    }
    
    .cookie-icon {
        animation: none;
    }
}

/* Print Stilleri */
@media print {
    #cookie-consent-banner,
    #cookie-settings-modal {
        display: none !important;
    }
}
