/* 
* Cookie Consent Styles for Dischdiado Website
* Author: Dischdiado Team
* Version: 1.0
*/

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
}

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

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.cookie-content p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

#accept-all {
    background-color: var(--primary-color);
    color: white;
}

#accept-all:hover {
    background-color: var(--secondary-color);
}

#accept-necessary {
    background-color: var(--gray-200);
    color: var(--text-color);
}

#accept-necessary:hover {
    background-color: var(--gray-300);
}

#cookie-settings {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

#cookie-settings:hover {
    background-color: var(--light-color);
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cookie-modal.show {
    display: block;
    opacity: 1;
}

.cookie-modal-content {
    position: relative;
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
}

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

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.cookie-modal h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-300);
}

.cookie-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.cookie-option p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 1.8rem;
}

.cookie-option input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

#save-preferences {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    width: 100%;
    max-width: 300px;
}

#save-preferences:hover {
    background-color: var(--secondary-color);
}

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