/* LGPD Privacy Banner - Frontend CSS - Layout Moderno */

.lpb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99998;
    display: none;
    backdrop-filter: blur(2px);
}

.lpb-overlay.lpb-visible {
    display: block;
}

.lpb-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    padding: 32px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: none;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    backdrop-filter: blur(10px);
}

.lpb-banner.lpb-visible {
    display: block;
}

/* Posições */
.lpb-position-top {
    top: 0;
    border-radius: 0 0 16px 16px;
}

.lpb-position-bottom {
    bottom: 0;
    border-radius: 16px 16px 0 0;
}

@media (min-width: 769px) {
    .lpb-position-top {
        top: 30px;
    }
    
    .lpb-position-bottom {
        bottom: 30px;
    }
}

/* Conteúdo */
.lpb-content {
    padding-right: 50px;
}

.lpb-title {
    margin: 0 0 16px 0;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.lpb-message {
    margin-bottom: 24px;
    line-height: 1.7;
    opacity: 0.9;
}

.lpb-message strong {
    font-weight: 600;
}

.lpb-message a,
.lpb-policy-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.lpb-message a:hover,
.lpb-policy-link:hover {
    border-bottom-color: currentColor;
}

/* Botões - Design Moderno */
.lpb-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lpb-button {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.lpb-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lpb-button:hover::before {
    width: 300px;
    height: 300px;
}

.lpb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lpb-button:active {
    transform: translateY(0);
}

.lpb-accept {
    position: relative;
    z-index: 1;
}

.lpb-reject,
.lpb-settings {
    position: relative;
    z-index: 1;
}

/* Botão Fechar - Minimalista */
.lpb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    opacity: 0.5;
    transition: all 0.3s;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpb-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.lpb-close svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Animações Suaves */
@keyframes slideInBottom {
    from {
        transform: translateX(-50%) translateY(120%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        transform: translateX(-50%) translateY(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutBottom {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(120%);
        opacity: 0;
    }
}

@keyframes slideOutTop {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-120%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
}

/* Aplicar animações */
.lpb-animation-slide.lpb-position-bottom.lpb-visible {
    animation-name: slideInBottom;
}

.lpb-animation-slide.lpb-position-top.lpb-visible {
    animation-name: slideInTop;
}

.lpb-animation-slide.lpb-position-bottom.lpb-hiding {
    animation-name: slideOutBottom;
}

.lpb-animation-slide.lpb-position-top.lpb-hiding {
    animation-name: slideOutTop;
}

.lpb-animation-fade.lpb-visible {
    animation-name: fadeIn;
}

.lpb-animation-fade.lpb-hiding {
    animation-name: fadeOut;
}

/* Responsivo */
@media (max-width: 768px) {
    .lpb-banner {
        left: 16px;
        right: 16px;
        transform: none;
        padding: 24px 20px;
        max-width: calc(100% - 32px) !important;
    }
    
    .lpb-position-bottom {
        bottom: 16px;
    }
    
    .lpb-position-top {
        top: 16px;
    }
    
    .lpb-buttons {
        flex-direction: column;
    }
    
    .lpb-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .lpb-content {
        padding-right: 40px;
    }
    
    .lpb-title {
        font-size: 1.2em;
    }
    
    .lpb-message {
        font-size: 0.95em;
    }
    
    .lpb-close {
        top: 16px;
        right: 16px;
    }
    
    @keyframes slideInBottom {
        from {
            transform: translateY(120%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideInTop {
        from {
            transform: translateY(-120%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutBottom {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(120%);
            opacity: 0;
        }
    }
    
    @keyframes slideOutTop {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-120%);
            opacity: 0;
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    @keyframes fadeOut {
        from {
            opacity: 1;
            transform: scale(1);
        }
        to {
            opacity: 0;
            transform: scale(0.95);
        }
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .lpb-banner,
    .lpb-overlay,
    .lpb-button {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark Mode - Ajustar automaticamente */
@media (prefers-color-scheme: dark) {
    .lpb-banner {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

/* Print */
@media print {
    .lpb-banner,
    .lpb-overlay {
        display: none !important;
    }
}
