/* 🍪 Cookie Banner Avvocà - Professionale e minimale */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid #007cba;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ecf0f1;
}

.cookie-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.cookie-btn-accept {
    background: #007cba;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #005a8b;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: #bdc3c7;
    border: 1px solid #7f8c8d;
}

.cookie-btn-decline:hover {
    background: #7f8c8d;
    color: #fff;
}

.cookie-btn-settings {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.cookie-btn-settings:hover {
    background: #3498db;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-text h5 {
        font-size: 1rem;
        justify-content: center;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Animation per il fade out */
@keyframes cookieFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

.cookie-banner.fade-out {
    animation: cookieFadeOut 0.4s ease-in-out forwards;
}

/* Icon styling */
.cookie-icon {
    font-size: 1.2rem;
    color: #f39c12;
}

/* Settings Modal (se implementato in futuro) */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    padding: 20px;
}

.cookie-settings-content {
    background: #fff;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
}
