/* Aviso de Cookies - Estilos */

/* Container principal do aviso */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid var(--rs-yellow);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    backdrop-filter: blur(10px);
}

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

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

/* Conteúdo do banner */
.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Texto do aviso */
.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rs-green);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-title i {
    color: var(--rs-yellow);
}

.cookie-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cookie-link {
    color: var(--rs-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--rs-red);
    text-decoration: underline;
}

/* Botões de ação */
.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

/* Botão "Somente Necessários" */
.cookie-btn-necessary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.cookie-btn-necessary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Botão "Aceitar Todos" */
.cookie-btn-accept {
    background: linear-gradient(135deg, var(--rs-green), var(--rs-yellow));
    color: white;
    border: 2px solid transparent;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #1e7e34, #e0a800);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Botão de configurações */
.cookie-btn-settings {
    background: transparent;
    color: var(--rs-green);
    border: 2px solid var(--rs-green);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.cookie-btn-settings:hover {
    background: var(--rs-green);
    color: white;
    transform: translateY(-2px);
}

/* Modal de configurações de cookies */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--rs-yellow);
}

.cookie-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rs-green);
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #f8f9fa;
    color: var(--rs-red);
}

/* Categorias de cookies */
.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--rs-yellow);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-weight: 600;
    color: var(--rs-green);
    margin: 0;
    font-size: 1rem;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cookie-category-examples {
    font-size: 0.8rem;
    color: #868e96;
    font-style: italic;
}

/* Toggle switch para cookies */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, var(--rs-green), var(--rs-yellow));
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: #6c757d;
}

/* Ações do modal */
.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Status de consentimento */
.cookie-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--rs-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.cookie-status.show {
    display: flex;
}

.cookie-status i {
    color: var(--rs-yellow);
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        padding: 1rem;
    }
    
    .cookie-status {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

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

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

.cookie-banner.show {
    animation: slideUp 0.4s ease-out;
}

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

/* Estados especiais */
.cookie-banner.accepted {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-top-color: var(--rs-green);
}

.cookie-banner.rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-top-color: var(--rs-red);
}

/* Indicador de cookies ativos */
.cookie-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--rs-green);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    display: none;
}

.cookie-indicator.show {
    display: block;
}

.cookie-indicator:hover {
    background: var(--rs-yellow);
    transform: scale(1.1);
}

.cookie-indicator i {
    font-size: 1.2rem;
}

