/* WayCredit Cookie Banner Styles */

/* Reset e base */
.cookie-banner * {
    box-sizing: border-box;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid #00b4a6;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00b4a6, #008a7f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

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

.cookie-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cookie-description {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.5;
}

.cookie-description a {
    color: #00b4a6;
    text-decoration: none;
    font-weight: 500;
}

.cookie-description a:hover {
    text-decoration: underline;
}

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

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 2rem !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    font-family: inherit;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #00b4a6, #008a7f);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 166, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 180, 166, 0.4);
}

.cookie-btn-reject {
    background: #ffffff;
    color: #5a6c7d;
    border: 2px solid #e1e8ed;
}

.cookie-btn-reject:hover {
    background: #f8f9fa;
    border-color: #d1d9e0;
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: transparent;
    color: #00b4a6;
    border: 2px solid #00b4a6;
}

.cookie-btn-settings:hover {
    background: #00b4a6;
    color: white;
    transform: translateY(-1px);
}

/* Modal per le impostazioni */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cookie-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5a6c7d;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cookie-close:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #00b4a6;
}

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

.cookie-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-category-description {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.active {
    background: #00b4a6;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active::after {
    transform: translateX(24px);
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Notifiche */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #00b4a6;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideInRight 0.3s ease-out;
}

.cookie-notification.error {
    background: #e74c3c;
}

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

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

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: auto;
    }

    .cookie-modal-content {
        margin: 10px;
        padding: 20px;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .cookie-notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-title {
        font-size: 16px;
    }
    
    .cookie-description {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

