/* 
 * VR Portugal Tours - Cookie Consent Stylesheet
 * 
 * This stylesheet contains styles for the cookie consent banner and settings modal.
 */

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 9999;
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content {
    padding: 20px;
}

.cookie-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cookie-content p {
    margin-bottom: 20px;
}

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

.btn-cookie {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-cookie.secondary {
    background-color: var(--gray-light-color);
    color: var(--dark-color);
}

.btn-cookie.secondary:hover {
    background-color: var(--gray-color);
    color: white;
}

.btn-cookie.tertiary {
    background-color: transparent;
    color: var(--dark-color);
    text-decoration: underline;
}

.btn-cookie.tertiary:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

.cookie-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

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

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--dark-color);
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-option {
    margin-bottom: 20px;
}

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

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-header h4 {
    margin: 0;
}

.cookie-option p {
    margin: 0;
    color: var(--gray-color);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-light-color);
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-light-color);
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-content {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        text-align: center;
    }
    
    .cookie-modal-content {
        width: 90%;
        max-height: 80vh;
    }
}
