/* Cookie Banner Styles */

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 3px solid #14b8a6;
    padding: 24px 20px;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

#cookieBanner.show {
    transform: translateY(0);
}

#cookieBanner.hidden {
    display: none;
}

@media (max-width: 768px) {
    #cookieBanner {
        padding: 16px 12px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    #cookieBanner > div:first-child {
        flex-basis: 100%;
    }
}

.cookie-content {
    flex: 1;
    min-width: 200px;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content h3 {
    color: #14b8a6;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-content p {
    margin: 0;
    text-align: justify;
}

.cookie-content a {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cookie-content a:hover {
    color: #0d9488;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .cookie-buttons {
        flex-basis: 100%;
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100% !important;
    }
}

#acceptCookies {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#acceptCookies:hover {
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

#rejectCookies {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#rejectCookies:hover {
    border-color: #14b8a6;
    color: #14b8a6;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

#closeCookies {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

#closeCookies:hover {
    color: #14b8a6;
}

/* Animazione di ingresso */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookieBanner.show {
    animation: slideUp 0.3s ease-in-out;
}
