/**
 * Cookie Consent Banner Styles - Policon Tecnologia
 * Conformidade LGPD/GDPR
 */

/* Banner Principal */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    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 #3498db;
}

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

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

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

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ecf0f1;
}

.cookie-consent-text h4 i {
    color: #f39c12;
    margin-right: 8px;
}

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

.cookie-consent-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.cookie-consent-actions .btn-light {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
}

.cookie-consent-actions .btn-light:hover {
    background: #d5dbdb;
    color: #1a252f;
}

.cookie-consent-actions .btn-outline-light {
    border: 1px solid #bdc3c7;
    color: #ecf0f1;
    background: transparent;
}

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

/* Modal de Configurações */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.cookie-modal-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.cookie-modal-header h4 i {
    color: #f39c12;
    margin-right: 8px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-category-header .form-check {
    margin: 0;
}

.cookie-category-header .form-check-label {
    font-size: 1rem;
    color: #2c3e50;
    cursor: pointer;
}

.cookie-category-description {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    padding-left: 24px;
}

.form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.form-check-input:focus {
    border-color: #5dade2;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-modal-footer .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Notificação */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
}

.cookie-notification .alert {
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cookie-notification .alert i {
    margin-right: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-consent-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .cookie-consent-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 16px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
    
    .cookie-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 16px;
    }
    
    .cookie-consent-text h4 {
        font-size: 1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-consent-actions .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cookie-settings-modal.show .cookie-modal-content {
    animation: fadeIn 0.3s ease;
}

/* Estados de foco para acessibilidade */
.cookie-consent-actions .btn:focus,
.cookie-modal-close:focus,
.cookie-modal-footer .btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .cookie-modal-header,
    .cookie-modal-footer {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .cookie-category {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .cookie-category-header .form-check-label {
        color: #ecf0f1;
    }
    
    .cookie-category-description {
        color: #bdc3c7;
    }
}