/* cookie-banner.css - Refined for animations */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Darker, softer background */
    color: #ecf0f1; /* Light text */
    padding: 18px 25px; /* Slightly more padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow for depth */
    z-index: 1000;
    flex-wrap: wrap;
    font-family: 'Roboto', sans-serif; /* Use site's font if available */

    /* Initial state: hidden off-screen, will slide up */
    transform: translateY(100%);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transitions */
    opacity: 0; /* Start invisible for fade in */
}

/* Class to make banner visible and trigger slide-up/fade-in */
#cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

/* Class to hide the banner completely without animation */
#cookie-banner.fully-hidden {
    display: none;
}

/* No explicit fade-out animation class needed for CSS if we manage opacity/transform with JS */

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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


#cookie-banner p {
    margin: 0;
    flex-grow: 1;
    margin-right: 25px;
    line-height: 1.5;
    font-size: 0.95em;
}

#cookie-banner p a {
    color: #3498db; /* A friendly blue for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

#cookie-banner p a:hover {
    color: #2980b9;
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 12px; /* Slightly more space between buttons */
}

#cookie-banner button {
    background-color: #3498db; /* Primary blue for accept */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px; /* Slightly more rounded corners */
    font-size: 0.9em;
    font-weight: 500; /* Slightly bolder text */
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

#cookie-banner button:hover {
    background-color: #2980b9;
    transform: translateY(-2px); /* Subtle lift on hover */
}

#cookie-banner button.decline {
    background-color: #7f8c8d; /* Softer grey for decline */
}

#cookie-banner button.decline:hover {
    background-color: #626b6e;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    #cookie-banner p {
        margin-right: 0;
        margin-bottom: 15px;
    }

    #cookie-banner .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column; /* Stack buttons vertically */
    }

    #cookie-banner button {
        width: 100%; /* Full width buttons on small screens */
        padding: 12px 20px;
    }
}
