/* Cookie Consent Banner - Basit ve Garantili Versiyon */

/* Banner başlangıçta kesinlikle gizli */
.cookie-consent-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 99999 !important; /* En üstte - tüm elementlerden yüksek */
    padding: 1.5rem !important;
    border-top: 1px solid #e0e0e0 !important;
    /* Başlangıçta gizli */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out !important;
    pointer-events: none !important;
}

/* Banner gösterildiğinde */
.cookie-consent-banner.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-consent-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.cookie-consent-icon svg {
    width: 28px;
    height: 28px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent-actions .btn {
    min-width: 120px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.cookie-consent-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.cookie-consent-actions .btn:focus {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(26, 26, 26, 0.25);
}

.cookie-consent-actions .btn:active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Cookie Settings Modal */
.cookie-category {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    background: #f0f0f0;
    border-color: #dee2e6;
}

.cookie-category h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cookie-category h6 i {
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

.cookie-category .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.cookie-category .form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal z-index */
#cookieSettingsModal {
    z-index: 99999 !important;
}

#cookieSettingsModal .modal-backdrop {
    z-index: 99998 !important;
}

/* Dark Theme Support */
.theme-dark .cookie-consent-banner {
    background: #1a1a1a !important;
    border-top-color: #333 !important;
}

.theme-dark .cookie-consent-text h4 {
    color: #ffffff !important;
}

.theme-dark .cookie-consent-text p {
    color: #cccccc !important;
}

.theme-dark .cookie-category {
    background: #2a2a2a;
    border-color: #404040;
}

.theme-dark .cookie-category:hover {
    background: #333333;
    border-color: #505050;
}

.theme-dark .cookie-category h6 {
    color: #ffffff;
}

.theme-dark .cookie-category .text-muted {
    color: #aaaaaa !important;
}

/* Dark Theme - Modal Styles */
.theme-dark #cookieSettingsModal .modal-content {
    background-color: #1a1a1a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.theme-dark #cookieSettingsModal .modal-header {
    background-color: #1a1a1a !important;
    border-bottom-color: #404040 !important;
}

.theme-dark #cookieSettingsModal .modal-title {
    color: #ffffff !important;
}

.theme-dark #cookieSettingsModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.theme-dark #cookieSettingsModal .btn-close:hover {
    opacity: 1;
}

.theme-dark #cookieSettingsModal .modal-body {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.theme-dark #cookieSettingsModal .modal-body p {
    color: #cccccc !important;
}

.theme-dark #cookieSettingsModal .modal-body .text-muted {
    color: #aaaaaa !important;
}

.theme-dark #cookieSettingsModal .modal-footer {
    background-color: #1a1a1a !important;
    border-top-color: #404040 !important;
}

.theme-dark #cookieSettingsModal .form-check-label {
    color: #ffffff !important;
}

.theme-dark #cookieSettingsModal .form-check-input {
    background-color: #2a2a2a !important;
    border-color: #404040 !important;
}

.theme-dark #cookieSettingsModal .form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

.theme-dark #cookieSettingsModal .form-check-input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25) !important;
}

.theme-dark #cookieSettingsModal .form-check-input:disabled {
    background-color: #2a2a2a !important;
    opacity: 0.5;
}

/* Modal Footer Buttons */
#cookieSettingsModal .modal-footer .btn {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    font-weight: 500;
}

#cookieSettingsModal .modal-footer .btn:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#cookieSettingsModal .modal-footer .btn:focus {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(26, 26, 26, 0.25);
}

#cookieSettingsModal .modal-footer .btn:active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.theme-dark #cookieSettingsModal .modal-footer .btn {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
}

.theme-dark #cookieSettingsModal .modal-footer .btn:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem !important;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-consent-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-consent-icon svg {
        width: 24px;
        height: 24px;
    }

    .cookie-consent-text h4 {
        font-size: 1rem;
    }

    .cookie-consent-text p {
        font-size: 0.8125rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-actions .btn {
        width: 100%;
        min-width: unset;
    }
}
