/* CSS para o Banner de Cookies - LGPD/GDPR Compliance */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, rgba(20,20,20,0.98) 0%, rgba(40,40,40,0.98) 100%);
    border-top: 2px solid #666;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.8);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    padding: 1.5rem 0;
    backdrop-filter: blur(5px);
    font-family: "Roboto Slab", serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: "Roboto Slab", serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-banner-text p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    color: #ddd;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Roboto Slab", serif;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-accept {
    background: linear-gradient(145deg, #333 0%, #555 100%);
    color: #fff;
    border: 2px solid #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(145deg, #444 0%, #666 100%);
    border-color: #777;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: #ccc;
    border: 2px solid #666;
}

.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #888;
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: transparent;
    color: #999;
    border: 1px solid #555;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.cookie-btn-settings:hover {
    background: rgba(255,255,255,0.05);
    color: #ccc;
    border-color: #666;
    transform: translateY(-1px);
}

/* Ícone de cookies com animação */
.cookie-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    animation: cookieFloat 2s ease-in-out infinite;
}

@keyframes cookieFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 0;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-text h4 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 200px;
        padding: 0.8rem 1rem;
    }
    
    .cookie-banner-text h4 {
        font-size: 0.95rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.85rem;
    }
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.animate-in {
    animation: slideUp 0.4s ease-out forwards;
}

/* Estados do banner */
.cookie-banner.hidden {
    display: none;
}

.cookie-banner.accepted {
    display: none;
}

/* Efeito de pulsação para chamar atenção */
.cookie-banner.pulse {
    animation: cookiePulse 3s infinite;
}

@keyframes cookiePulse {
    0% { border-top-color: #666; }
    50% { border-top-color: #888; }
    100% { border-top-color: #666; }
}

/* Melhorias visuais adicionais */
.cookie-btn i {
    margin-right: 0.5rem;
}

.cookie-banner-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #666, transparent);
}

/* Estilo para modal de configurações (implementação futura) */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    padding: 2rem;
    backdrop-filter: blur(3px);
}

.cookie-settings-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    max-width: 600px;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #666;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Adicionar um pequeno indicador visual */
.cookie-banner::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #666, #888, #666);
    border-radius: 1px;
}
