/**
 * Cookie Consent Banner Styles
 * GDPR Compliant Cookie Banner - Updated Design
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-top: 3px solid #0f3460;
}

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

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

.cookie-consent-icon {
    flex-shrink: 0;
}

.cookie-consent-icon i {
    font-size: 3rem;
    color: #ffd700;
    animation: cookiePulse 2s ease-in-out infinite;
}

@keyframes cookiePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-message {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

.cookie-link {
    color: #4da3ff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #80c0ff;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-consent-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cookie-consent-buttons .btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cookie-consent-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.cookie-consent-buttons .btn-secondary {
    background: #6c757d;
    border: none;
}

.cookie-consent-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.cookie-consent-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: transparent;
}

.cookie-consent-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-category {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.cookie-category h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-category .form-switch {
    transform: scale(1.2);
}

.cookie-category .form-check-input:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}

.cookie-category .form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Customizations */
#cookieSettingsModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#cookieSettingsModal .modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 20px 25px;
}

#cookieSettingsModal .modal-title {
    font-weight: 700;
}

#cookieSettingsModal .btn-close {
    filter: brightness(0) invert(1);
}

#cookieSettingsModal .modal-body {
    padding: 25px;
}

#cookieSettingsModal .modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
}

/* Dark Theme */
.cookie-consent-banner.dark {
    background: #2c2c2c;
    color: #ffffff;
}

.cookie-consent-banner.dark .cookie-consent-title {
    color: #ffffff;
}

.cookie-consent-banner.dark .cookie-consent-description {
    color: #cccccc;
}

.cookie-consent-banner.dark .cookie-option {
    background: #3a3a3a;
}

.cookie-consent-banner.dark .cookie-option-desc {
    color: #aaaaaa;
}

.cookie-consent-banner.dark .btn-customize {
    background: #3a3a3a;
    color: #ffffff;
    border-color: #ffffff;
}

.cookie-consent-banner.dark .btn-customize:hover {
    background: #4a4a4a;
}

.cookie-consent-banner.dark .cookie-consent-footer a {
    color: #cccccc;
}

.cookie-consent-banner.dark .cookie-consent-footer a:hover {
    color: #ff9a56;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 25px;
    }
    
    .cookie-consent-icon i {
        font-size: 2.5rem;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .cookie-consent-title {
        font-size: 1.1rem;
    }
    
    .cookie-consent-message {
        font-size: 0.85rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-category {
        padding: 12px;
    }
}

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

.cookie-consent-banner.show {
    animation: fadeIn 0.3s ease-in-out;
}

