/* ==================== BANNER DE COOKIES - LGPD ==================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    border-top: 2px solid var(--cor-dourada, #c9a96e);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-content h4 {
    color: var(--cor-dourada, #c9a96e);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-content h4 i {
    font-size: 1.3rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b0b0b0;
}

.cookie-content a {
    color: var(--cor-dourada, #c9a96e);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #e6d0a3;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-accept {
    background: linear-gradient(45deg, var(--cor-dourada, #c9a96e), var(--cor-bronze, #b8956b));
    color: #0a0a0a;
}

.cookie-btn-accept:hover {
    background: linear-gradient(45deg, #e6d0a3, #c9a96e);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 110, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #444;
}

.cookie-btn-settings:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--cor-dourada, #c9a96e);
    color: var(--cor-dourada, #c9a96e);
}

.cookie-btn-reject {
    background: transparent;
    color: #888;
    border: 1px solid #333;
    font-size: 0.85rem;
    padding: 10px 18px;
}

.cookie-btn-reject:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ==================== MODAL DE CONFIGURAÇÕES ==================== */

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.cookie-modal-overlay.show {
    display: flex;
}

.cookie-modal {
    background: #0f0f0f;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #2d2d2d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.1);
}

.cookie-modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    color: var(--cor-dourada, #c9a96e);
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-category {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #2d2d2d;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(201, 169, 110, 0.3);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category-title i {
    color: var(--cor-dourada, #c9a96e);
}

.cookie-category-desc {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.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: #333;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(45deg, var(--cor-dourada, #c9a96e), var(--cor-bronze, #b8956b));
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
    background-color: #0a0a0a;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-required {
    font-size: 0.75rem;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

/* ==================== RESPONSIVO ==================== */

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        min-width: 100%;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .cookie-modal {
        max-height: 90vh;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
