/**
 * LGPD Cookie Consent Styles
 * Estilos para o banner de cookies LGPD
 * Curitiba Sites - 2024
 */

/* Banner Principal LGPD */
.lgpd-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(192, 212, 6, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    animation: slideUp 0.3s ease-out;
}

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

.lgpd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lgpd-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.lgpd-text {
    flex: 1;
    min-width: 300px;
}

.lgpd-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.lgpd-text a {
    color: #3498db;
    text-decoration: underline;
    font-weight: 500;
}

.lgpd-text a:hover {
    color: #2980b9;
}

.lgpd-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lgpd-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.lgpd-accept {
    background: #27ae60;
    color: white;
}

.lgpd-accept:hover {
    background: #219a52;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.lgpd-reject {
    background: #ff1c03;
    color: white;
}

.lgpd-reject:hover {
    background: #f06454;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.lgpd-settings {
    background: #3498db;
    color: white;
}

.lgpd-settings:hover {
    background: #44a80a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .lgpd-cookie-banner {
        padding: 15px 0;
    }
    
    .lgpd-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .lgpd-text {
        min-width: auto;
    }
    
    .lgpd-buttons {
        justify-content: center;
    }
    
    .lgpd-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .lgpd-cookie-banner {
        padding: 10px 0;
    }
    
    .lgpd-text p {
        font-size: 13px;
    }
    
    .lgpd-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Ocultar banner quando consentido */
.lgpd-cookie-banner.hidden {
    display: none !important;
}

/* Animação de saída */
.lgpd-cookie-banner.fade-out {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Estilos para links de política no footer */
.footer-lgpd-links {
    margin-top: 15px;
}

.footer-lgpd-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-lgpd-links a:hover {
    color: #3498db;
}

/* Estilos para checkbox de consentimento em formulários */
.lgpd-consent-checkbox {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lgpd-consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.lgpd-consent-checkbox label {
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.lgpd-consent-checkbox label a {
    color: #3498db;
    text-decoration: underline;
}

/* Estilos para modal de configurações */
.lgpd-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.lgpd-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.lgpd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.lgpd-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lgpd-close {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}

.lgpd-cookie-option {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.lgpd-cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.lgpd-cookie-option input[type="checkbox"] {
    margin-right: 10px;
}

.lgpd-cookie-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.lgpd-cookie-description {
    font-size: 13px;
    color: #666;
}

.lgpd-modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.lgpd-save-settings {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.lgpd-save-settings:hover {
    background: #219a52;
}

/* Ocultar elementos quando não necessários */
.lgpd-hidden {
    display: none !important;
}
