/* cookie-banner.css - Cookie Consent Banner conforme a GDPR e Linee Guida Garante Privacy 2021 */

.haiccp-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 580px;
    margin: 0 auto;
    background: rgba(12, 18, 32, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.12);
    z-index: 999999;
    color: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.haiccp-cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.haiccp-cookie-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.haiccp-cookie-title i {
    color: #00f2fe;
    font-size: 1.15rem;
}

.haiccp-cookie-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    border-radius: 6px;
}

.haiccp-cookie-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.haiccp-cookie-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.haiccp-cookie-text a {
    color: #00f2fe;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.haiccp-cookie-text a:hover {
    color: #ffffff;
}

.haiccp-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.haiccp-cookie-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: inherit;
    border: none;
}

.haiccp-cookie-btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #060911;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

.haiccp-cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.haiccp-cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.haiccp-cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(0, 242, 254, 0.4);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .haiccp-cookie-banner {
        bottom: 75px; /* Spazio sopra la bottom bar da smartphone */
        left: 12px;
        right: 12px;
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .haiccp-cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .haiccp-cookie-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}
