/**
* Explore Australia - Cookie Consent Stylesheet
* Styles for the cookie management system
*/

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    font-family: var(--font-primary);
    animation: slide-up 0.5s ease forwards;
}

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

.cookie-content {
    padding: 1.5rem;
}

.cookie-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Cookie Options */
.cookie-options {
    background-color: var(--gray-100);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.cookie-option {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

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

.cookie-option input[type="checkbox"] {
    margin-right: 0.75rem;
}

.cookie-option label {
    font-size: 0.95rem;
    color: var(--gray-800);
    cursor: pointer;
}

.cookie-option .tooltip {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--dark-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 200px;
    pointer-events: none;
    z-index: 10;
}

.cookie-option .tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--dark-color);
}

.cookie-option:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Cookie Buttons */
.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-buttons button {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

#accept-selected {
    background-color: var(--secondary-color);
    color: white;
}

#accept-selected:hover {
    background-color: #28b0a2; /* Darker shade of the secondary color */
}

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

#accept-all:hover {
    background-color: #e05f30; /* Darker shade of the primary color */
}

/* Cookie Footer */
.cookie-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8rem;
}

.cookie-footer a {
    color: var(--gray-600);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-footer a:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 1rem 1rem 0 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .cookie-content {
        padding: 1.25rem;
    }
    
    .cookie-options {
        padding: 0.75rem;
    }
}
