/* Sistema de Controle de Cookies - Estilos */

/* Banner de Cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Poppins', sans-serif;
}

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

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

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

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ddd;
}

.cookie-policy-link {
    color: #E31937;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #ff4757;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Botões */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #E31937;
    color: white;
}

.cookie-btn-primary:hover {
    background: #B71C1C;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: #666;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #555;
    transform: translateY(-1px);
}

.cookie-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid #666;
}

.cookie-btn-outline:hover {
    background: #666;
    border-color: #777;
}

/* Modal de Preferências */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

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

.cookie-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

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

.cookie-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-modal-body > p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-category {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #E31937;
}

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

.cookie-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.cookie-checkbox {
    display: none;
}

.cookie-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cookie-checkbox:checked + .cookie-checkbox-custom {
    background: #E31937;
    border-color: #E31937;
}

.cookie-checkbox:checked + .cookie-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.cookie-checkbox:disabled + .cookie-checkbox-custom {
    background: #f0f0f0;
    border-color: #ccc;
    cursor: not-allowed;
}

.cookie-checkbox:disabled ~ * {
    cursor: not-allowed;
    opacity: 0.7;
}

.required-label {
    color: #E31937;
    font-size: 0.8rem;
    font-weight: normal;
}

.cookie-category-description {
    margin-left: 30px;
}

.cookie-category-description p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-category-description small {
    color: #999;
    font-size: 0.8rem;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 15px;
    }
    
    .cookie-category {
        padding: 12px;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Acessibilidade */
.cookie-btn:focus,
.cookie-checkbox-label:focus-within .cookie-checkbox-custom,
.cookie-modal-close:focus {
    outline: 2px solid #E31937;
    outline-offset: 2px;
}

/* Estados de hover melhorados */
.cookie-category:hover .cookie-checkbox-custom {
    border-color: #E31937;
}

.cookie-checkbox-label:hover .cookie-checkbox-custom {
    transform: scale(1.05);
}

/* Indicador de carregamento (opcional) */
.cookie-loading {
    position: relative;
    overflow: hidden;
}

.cookie-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

