/* ================================
   COOKIE CONSENT BANNER
   ================================ */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cinza-escuro);
    border-top: 2px solid var(--laranja);
    padding: 25px 30px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

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

.cookie-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.cookie-banner-content {
    color: var(--branco);
}

.cookie-banner-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--branco);
    margin-bottom: 10px;
}

.cookie-banner-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--branco);
    opacity: 0.85;
    margin-bottom: 15px;
}

.cookie-banner-text a {
    color: var(--laranja);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cookie-banner-text a:hover {
    border-bottom-color: var(--laranja);
}

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

.cookie-btn {
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--laranja);
    color: var(--preto);
}

.cookie-btn-accept:hover {
    background: var(--branco);
    color: var(--preto);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--branco);
    border: 1px solid var(--cinza-medio);
}

.cookie-btn-reject:hover {
    border-color: var(--branco);
}

.cookie-btn-customize {
    background: transparent;
    color: var(--branco);
    border: 1px solid var(--laranja);
}

.cookie-btn-customize:hover {
    background: var(--laranja);
    color: var(--preto);
}

/* Cookie Preferences Modal */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

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

.cookie-modal-content {
    background: var(--preto);
    border: 2px solid var(--laranja);
    max-width: 700px;
    width: 100%;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--branco);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--laranja);
}

.cookie-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--laranja);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cookie-modal-description {
    font-size: 14px;
    color: var(--branco);
    opacity: 0.85;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--cinza-medio);
}

.cookie-category:last-child {
    border-bottom: none;
}

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--branco);
}

.cookie-category-required {
    font-size: 11px;
    color: var(--laranja);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-category-description {
    font-size: 13px;
    color: var(--branco);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    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: var(--cinza-medio);
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--laranja);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--cinza-medio);
}

.cookie-modal-actions .cookie-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 968px) {
    .cookie-banner-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }

    .cookie-modal-content {
        padding: 30px 20px;
    }

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

    .cookie-modal-actions .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    #cookie-banner {
        padding: 20px 15px;
    }

    .cookie-banner-title {
        font-size: 14px;
    }

    .cookie-banner-text {
        font-size: 13px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 15px;
        font-size: 11px;
    }

    .cookie-modal-title {
        font-size: 20px;
    }
}
