/**
 * Cookie Consent Banner Styles - Vitasystem
 * Estilos para o banner de aceite de cookies
 */

.cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
    font-size: 14px;
    line-height: 1.4;
}

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

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

.cookie-consent-content {
    position: relative;
    padding: 12px 0;
}

.cookie-text {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.cookie-text i {
    color: #f39c12;
    font-size: 18px;
    flex-shrink: 0;
}

.cookie-text span {
    margin: 0;
}

.cookie-link {
    color: #3498db;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.btn-cookie-primary {
    background: linear-gradient(135deg, #6B73FF, #9B59B6);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    min-width: 80px;
}

.btn-cookie-primary:hover {
    background: linear-gradient(135deg, #5a63e8, #8e4ec6);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 115, 255, 0.3);
    color: white;
}

.btn-cookie-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    min-width: 80px;
}

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

.cookie-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
    z-index: 1;
}

.cookie-close:hover {
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-consent-banner {
        font-size: 13px;
    }
    
    .cookie-consent-content {
        padding: 15px 0;
    }
    
    .cookie-text {
        margin-bottom: 10px;
        text-align: left;
        padding-right: 30px;
    }
    
    .cookie-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-cookie-primary,
    .btn-cookie-secondary {
        flex: 1;
        min-width: 100px;
        padding: 10px 16px;
    }
    
    .cookie-close {
        top: 10px;
        right: 10px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-content {
        padding: 12px 0;
    }
    
    .cookie-text {
        font-size: 12px;
        padding-right: 25px;
    }
    
    .cookie-text i {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .btn-cookie-primary,
    .btn-cookie-secondary {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Animações */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Ajuste para compensar o banner quando visível */
body.cookie-banner-visible {
    padding-top: 60px;
}

@media (max-width: 768px) {
    body.cookie-banner-visible {
        padding-top: 80px;
    }
}

/* Estilo para links dentro do texto de cookies */
.cookie-text a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.cookie-text a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Indicador de scroll quando banner está visível */
.cookie-consent-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #3498db 50%, transparent 100%);
    opacity: 0.6;
}

/* Estados de hover para melhor UX */
.cookie-consent-banner:hover .cookie-close {
    opacity: 1;
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .btn-cookie-primary,
    .btn-cookie-secondary,
    .cookie-close {
        transition: none;
    }
    
    .cookie-consent-banner.show {
        animation: none;
    }
}

/* Focus states para acessibilidade */
.btn-cookie-primary:focus,
.btn-cookie-secondary:focus,
.cookie-close:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.cookie-link:focus {
    outline: 1px solid #3498db;
    outline-offset: 1px;
}
