/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease-out;
}

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

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-description {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-policy-link {
    color: #ffd700;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-policy-link:hover {
    color: #fff;
    text-decoration: none;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

.cookie-banner-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-banner-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cookie Settings Modal Styles */
.cookie-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #dee2e6;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    background: #e9ecef;
    border-left-color: #6c757d;
}

.cookie-category h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.cookie-category .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .cookie-banner-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-title {
        font-size: 1rem;
    }
    
    .cookie-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Cookie Policy Modal Styles */
#cookiePolicyModal .modal-body h6 {
    color: #495057;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#cookiePolicyModal .modal-body h6:first-child {
    margin-top: 0;
}

#cookiePolicyModal .modal-body ul {
    padding-left: 1.5rem;
}

#cookiePolicyModal .modal-body li {
    margin-bottom: 0.25rem;
}

/* Cookie Settings Button in Footer */
.cookie-settings-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.cookie-settings-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Cookie Status Indicator */
.cookie-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 9998;
    backdrop-filter: blur(10px);
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.cookie-status.show {
    display: block;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-category {
        background: #2d3748;
        border-left-color: #4a5568;
        color: #e2e8f0;
    }
    
    .cookie-category:hover {
        background: #4a5568;
        border-left-color: #718096;
    }
    
    #cookiePolicyModal .modal-body h6 {
        color: #e2e8f0;
    }
}

/* Accessibility improvements */
.cookie-banner:focus-within {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.cookie-banner-actions .btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000;
        border-top: 2px solid #fff;
    }
    
    .cookie-banner-actions .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-banner-actions .btn,
    .cookie-category,
    .cookie-status {
        animation: none;
        transition: none;
    }
}
