/**
 * Cookie Consent Banner Styles
 * Design moderno e responsive per il banner di consenso cookie
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    z-index: 10000;
    display: none;
    flex-direction: column;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#cookie-consent-banner.show-preferences {
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    width: 100%;
}

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

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

.cookie-consent-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cookie-consent-text a {
    color: #FF6B35;
    text-decoration: underline;
    transition: color 0.3s;
}

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

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

.cookie-consent-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.cookie-consent-btn-primary {
    background: #FF6B35;
    color: #ffffff;
}

.cookie-consent-btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.cookie-consent-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent-btn-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    text-decoration: underline;
}

.cookie-consent-btn-text:hover {
    color: #ffffff;
}

/* Pannello Preferenze */
.cookie-consent-preferences {
    display: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-consent-banner.show-preferences .cookie-consent-preferences {
    display: block;
}

.cookie-consent-prefs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cookie-consent-prefs-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.cookie-consent-close-prefs {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.cookie-consent-close-prefs:hover {
    color: #ffffff;
}

.cookie-consent-category {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-consent-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.cookie-consent-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-consent-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-consent-switch input:checked + .cookie-consent-slider {
    background-color: #FF6B35;
}

.cookie-consent-switch input:checked + .cookie-consent-slider:before {
    transform: translateX(24px);
}

.cookie-consent-category-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-top: 10px;
}

.cookie-consent-category-description.required {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 25px 20px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-consent-text {
        min-width: auto;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-btn {
        width: 100%;
        padding: 14px 30px;
    }

    .cookie-consent-category {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-container {
        padding: 20px 15px;
    }

    .cookie-consent-text h3 {
        font-size: 1rem;
    }

    .cookie-consent-btn {
        font-size: 0.85rem;
        padding: 12px 25px;
    }
}
