/**
 * Estilos para Sistema de Consentimento de Cookies
 * LGPD/GDPR Compliant - Versão 1.0
 */

/* Banner Principal de Cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #f39c12;
}

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

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.cookie-consent-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: #f39c12;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cookie-consent-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

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

.cookie-consent-details {
    margin-top: 0.5rem;
}

.cookie-link {
    color: #f39c12;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #e67e22;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-consent-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-consent-actions .btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.cookie-consent-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cookie-consent-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.cookie-consent-actions .btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    border: none;
}

.cookie-consent-actions .btn-light:hover {
    background-color: #fff;
    color: #2c3e50;
}

/* Modal de Configurações */
.cookie-category {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.cookie-category h6 {
    color: #2c3e50;
    font-weight: 600;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.7;
}

/* Toast de Sucesso */
.toast {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header.bg-success {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-content {
        min-width: auto;
        margin-bottom: 1rem;
    }
    
    .cookie-consent-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-consent-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem 0;
    }
    
    .cookie-consent-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.875rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Acessibilidade */
.cookie-consent-banner:focus-within {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

.cookie-consent-actions .btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Animações suaves para melhor UX */
.cookie-consent-banner * {
    transition: all 0.2s ease;
}

/* Indicador visual para cookies essenciais */
.cookie-category .form-check-input:disabled + .form-check-label::after {
    content: " (Obrigatório)";
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* Estilo para links na política */
.cookie-consent-text a {
    color: #f39c12;
    font-weight: 500;
}

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

/* Overlay para garantir visibilidade */
.cookie-consent-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 152, 219, 0.95) 100%);
    z-index: -1;
}

/* Efeito de destaque para o botão principal */
.cookie-consent-actions .btn-success {
    position: relative;
    overflow: hidden;
}

.cookie-consent-actions .btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-consent-actions .btn-success:hover::before {
    left: 100%;
}