/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
}

.cookie-banner.visible {
    display: block;
    animation: slideUp 0.5s ease forwards;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cookie-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-buttons button {
    padding: 0.6rem 1.2rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}

#accept-necessary {
    background-color: transparent;
    border: 1px solid #16161A;
    color: #16161A;
}

#accept-necessary:hover {
    background-color: #f1f1f1;
}

#accept-all {
    background-color: #2CB67D;
    color: white;
}

#accept-all:hover {
    background-color: #28A06F;
}

#cookie-settings {
    background-color: transparent;
    border: 1px solid #94A1B2;
    color: #94A1B2;
}

#cookie-settings:hover {
    background-color: #f1f1f1;
    color: #16161A;
    border-color: #16161A;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.cookie-modal.visible {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.cookie-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease forwards;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94A1B2;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #16161A;
}

.cookie-modal-content h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #D1D5DB;
}

.cookie-options {
    margin-bottom: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f1f1;
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cookie-option input {
    margin-right: 0.75rem;
}

.cookie-option p {
    margin-left: 1.75rem;
    font-size: 0.9rem;
    color: #94A1B2;
}

#save-preferences {
    background-color: #2CB67D;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

#save-preferences:hover {
    background-color: #28A06F;
}

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

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .cookie-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}
