/**
 * Estilos para o Banner de Consentimento
 * Design moderno e responsivo
 */

/* Banner Principal */
#consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 3px solid #ff6b00;
}

#consent-banner.active {
    bottom: 0;
}

.consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.consent-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consent-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.consent-text h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.consent-text p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.consent-text a {
    color: #ff6b00;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.consent-text a:hover {
    color: #ff8533;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.consent-btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.consent-btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.consent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.consent-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.consent-btn-outline {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid #475569;
}

.consent-btn-outline:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

/* Modal de Personalização */
#consent-customize-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

#consent-customize-modal.active {
    opacity: 1;
    visibility: visible;
}

.consent-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#consent-customize-modal.active .consent-modal-content {
    transform: scale(1);
}

.consent-modal-header {
    padding: 2rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-modal-header h3 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.consent-close-btn {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #64748b;
    font-size: 1.5rem;
}

.consent-close-btn:hover {
    background: #ff6b00;
    color: white;
    transform: rotate(90deg);
}

.consent-modal-body {
    padding: 2rem;
}

.consent-option {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.consent-option:hover {
    border-color: #ff6b00;
    background: #fff;
}

.consent-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.consent-option-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.consent-option-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.consent-option-title h4 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.consent-option-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-left: 48px;
}

/* Toggle Switch */
.consent-toggle {
    position: relative;
    width: 56px;
    height: 32px;
}

.consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 32px;
}

.consent-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.consent-toggle input:checked + .consent-toggle-slider {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
}

.consent-toggle input:checked + .consent-toggle-slider:before {
    transform: translateX(24px);
}

.consent-toggle input:disabled + .consent-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-required-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consent-modal-footer {
    padding: 2rem;
    border-top: 2px solid #f1f5f9;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsividade */
@media (max-width: 768px) {
    #consent-banner {
        padding: 1.5rem;
    }

    .consent-text h3 {
        font-size: 1.25rem;
    }

    .consent-text p {
        font-size: 0.875rem;
    }

    .consent-actions {
        flex-direction: column;
    }

    .consent-btn {
        width: 100%;
        justify-content: center;
    }

    .consent-modal-header h3 {
        font-size: 1.5rem;
    }

    .consent-modal-body,
    .consent-modal-header,
    .consent-modal-footer {
        padding: 1.5rem;
    }

    .consent-modal-footer {
        flex-direction: column;
    }
}

/* Animações */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Botão de Configurações no Footer */
#consent-settings-btn {
    background: rgba(255, 107, 0, 0.1);
    color: #ff6b00;
    border: 2px solid #ff6b00;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#consent-settings-btn:hover {
    background: #ff6b00;
    color: white;
    transform: translateY(-2px);
}
