/* Çerez Kabul Sistemi CSS - Dinamik Renkler */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

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

.cookie-text {
    flex: 1;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text strong {
    color: #111827;
    font-weight: 600;
}

.cookie-text a {
    color: var(--site-primary-color, #2895ED) !important;
    text-decoration: underline !important;
}

.cookie-text a:hover {
    color: var(--site-secondary-color, #0A2051) !important;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Kabul Et Butonu - Admin Panelindeki Primary Color */
.cookie-btn-accept {
    background: var(--site-primary-color, #2895ED) !important;
    color: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.cookie-btn-accept:hover {
    background: var(--site-secondary-color, #0A2051) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Reddet Butonu */
.cookie-btn-decline {
    background: white !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
}

.cookie-btn-decline:hover {
    background: #ef4444 !important;
    color: white !important;
}

.cookie-btn-settings {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cookie-btn-settings:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-settings.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-overlay.show {
    opacity: 1;
}

.cookie-settings-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cookie-settings-header h3 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-settings-header p {
    margin: 0.5rem 0 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.cookie-option-info {
    flex: 1;
    margin-right: 1rem;
}

.cookie-option-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.cookie-option-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.cookie-toggle.active {
    background: var(--site-primary-color, #2895ED) !important;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-toggle.active::after {
    transform: translateX(24px);
}

.cookie-settings-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-save-settings {
    background: var(--site-accent-color, #87CEEB) !important;
    color: white !important;
}

.cookie-save-settings:hover {
    background: var(--site-secondary-color, #0A2051) !important;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-settings {
        padding: 1.5rem;
        width: 95%;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
}

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

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

.cookie-consent.show {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-overlay.show {
    animation: fadeIn 0.3s ease;
}

/* Force renkleri - CSS değişkenleri yüklenmezse */
.cookie-consent .cookie-btn-accept {
    background: #2895ED !important;
}

.cookie-consent .cookie-btn-accept:hover {
    background: #0A2051 !important;
}

.cookie-consent .cookie-text a {
    color: #2895ED !important;
}

.cookie-consent .cookie-text a:hover {
    color: #0A2051 !important;
}

.cookie-settings .cookie-toggle.active {
    background: #2895ED !important;
}

.cookie-settings .cookie-save-settings {
    background: #87CEEB !important;
}

.cookie-settings .cookie-save-settings:hover {
    background: #0A2051 !important;
}