
/* === BANNER DE COOKIES LGPD === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg) 0%, #f8fafc 100%);
    border-top: 3px solid var(--secondary);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.cookie-text {
    color: var(--text);
}

.cookie-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--primary);
}

.cookie-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-light);
}

.cookie-text a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: var(--primary);
}

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

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--secondary);
    color: white;
}

.cookie-btn-accept:hover {
    background: #2d9c6f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-btn-settings:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #dc2626;
}

/* === MODAL DE CONFIGURAÇÕES === */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

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

.cookie-modal-content {
    background: var(--bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-modal-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.cookie-modal-header h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0 0 8px 0;
}

.cookie-modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.cookie-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    border-radius: 4px;
}

.cookie-modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.cookie-modal-body {
    padding: 0 24px 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

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

.cookie-category h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0;
}

.cookie-category.essential h4 {
    color: var(--text-light);
}

.cookie-category p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle.active {
    background: var(--secondary);
}

.cookie-toggle.disabled {
    background: #e2e8f0;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-toggle.active::after {
    transform: translateX(24px);
}

.cookie-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .cookie-consent-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }

    .cookie-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .cookie-modal-footer {
        flex-direction: column;
    }
}

/* Dark mode support */
:root[data-theme="dark"] .cookie-consent {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

:root[data-theme="dark"] .cookie-modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
}