/* 
* Cookie Management Styles for Tourism in Australia
*/

/* -------------- COOKIE BANNER -------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    color: #fff;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.active {
    display: block;
    animation: slideUp 0.5s ease-out;
}

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

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

.cookie-content h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.4rem;
}

.cookie-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

#accept-necessary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

#accept-necessary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#accept-all {
    background-color: #00B2A9;
    color: #fff;
}

#accept-all:hover {
    background-color: #008c84;
}

#cookie-settings {
    background-color: transparent;
    color: #fff;
    text-decoration: underline;
    padding-left: 10px;
    padding-right: 10px;
}

#cookie-settings:hover {
    color: #00B2A9;
}

/* -------------- COOKIE MODAL -------------- */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.cookie-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

.cookie-modal-content {
    background-color: #fff;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #00B2A9;
}

.cookie-modal h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8rem;
}

.cookie-options {
    margin-bottom: 30px;
}

.cookie-option {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

.cookie-option label {
    font-weight: 600;
    margin-left: 10px;
    cursor: pointer;
}

.cookie-option p {
    margin-top: 5px;
    margin-left: 30px;
    color: #777;
    font-size: 0.9rem;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    cursor: pointer;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: center;
}

#save-preferences {
    background-color: #00B2A9;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}

#save-preferences:hover {
    background-color: #008c84;
}

/* -------------- RESPONSIVE STYLES -------------- */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .cookie-modal-content {
        padding: 20px;
        max-width: 90%;
    }
}
