/* Mega menu Descobrir — referência tipo Preline, cores sólidas, sem gradiente */

/* Anchora dos paineis: .app-main-nav-center-mega-wrap (coluna central), nao a linha inteira */
.app-main-nav-discover-outer {
    overflow: visible;
    box-sizing: border-box;
}

.app-main-nav-center-mega-wrap {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mega em overlay: não aumenta a altura da barra nem empurra o restante do header */
.app-main-nav.app-main-nav--mega {
    overflow: visible;
}

.app-main-nav--mega.is-nav-mega-open {
    z-index: 45;
}

.app-header-shell:has(.is-nav-mega-open) {
    overflow: visible;
}

.app-main-nav-center-cluster {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.08rem 0.14rem;
}

.hp-discover-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
    padding-top: 0.45rem;
    padding-bottom: 0.35rem;
    animation: hp-discover-fade 0.18s ease-out;
}

@keyframes hp-discover-fade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hp-discover-mega-panel[hidden] {
    display: none !important;
}

.hp-discover-mega-panel__card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--cs-border) 92%, var(--cs-text));
    background: var(--cs-surface-elevated);
    padding: 1rem 1rem 1.05rem;
    box-shadow:
        0 14px 36px rgba(15, 23, 42, 0.1),
        0 2px 8px rgba(15, 23, 42, 0.05);
}

.hp-discover-mega-panel__grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .hp-discover-mega-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hp-discover-mega-panel__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hp-discover-tile {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.65rem 0.7rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    background: color-mix(in srgb, var(--cs-surface) 88%, transparent);
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hp-discover-tile:hover {
    background: #ffffff;
    border-color: color-mix(in srgb, var(--cs-btn-primary-bg) 22%, var(--cs-border));
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.hp-discover-tile:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--cs-btn-primary-bg) 55%, transparent);
    outline-offset: 2px;
}

.hp-discover-tile__icon {
    display: flex;
    width: 2.85rem;
    height: 2.85rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
}

.hp-discover-icon-svg {
    width: 1.55rem;
    height: 1.55rem;
}

.hp-discover-tile__icon--search {
    background: #dbeafe;
    color: #1d4ed8;
}

.hp-discover-tile__icon--compass {
    background: #d1fae5;
    color: #047857;
}

.hp-discover-tile__icon--spark {
    background: #ede9fe;
    color: #6d28d9;
}

.hp-discover-tile__icon--flame {
    background: #ffedd5;
    color: #c2410c;
}

.hp-discover-tile__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
}

.hp-discover-tile__title {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--cs-text);
}

.hp-discover-tile__desc {
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--cs-text-muted);
}

.hp-discover-chevron {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    margin-left: 0.08rem;
    transition: transform 0.18s ease;
    color: currentColor;
}

.app-main-nav-discover-toggle[aria-expanded="true"] .hp-discover-chevron,
.app-main-nav-seek-toggle[aria-expanded="true"] .hp-discover-chevron,
.app-main-nav-smart-toggle[aria-expanded="true"] .hp-discover-chevron,
.app-main-nav-objective-toggle[aria-expanded="true"] .hp-discover-chevron,
.app-main-nav-svc-sub-toggle[aria-expanded="true"] .hp-discover-chevron {
    transform: rotate(180deg);
}

.app-main-nav-seek-label {
    display: inline-block;
    max-width: 11.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.hp-discover-tile__icon--physical {
    background: #fef3c7;
    color: #b45309;
}

.hp-discover-tile__icon--digital {
    background: #dbeafe;
    color: #1d4ed8;
}

.hp-discover-tile__icon--services {
    background: #cffafe;
    color: #0e7490;
}

.hp-discover-tile__icon--subscription {
    background: #ede9fe;
    color: #6d28d9;
}

.hp-discover-tile__icon--rated {
    background: #fef9c3;
    color: #a16207;
}

.hp-discover-tile__icon--verified {
    background: #dcfce7;
    color: #15803d;
}

.hp-discover-tile__icon--trending {
    background: #ffedd5;
    color: #c2410c;
}

.hp-discover-tile__icon--deals {
    background: #e0f2fe;
    color: #0369a1;
}

.hp-discover-tile__icon--fresh {
    background: #fae8ff;
    color: #a21caf;
}

.hp-discover-tile__icon--recommended {
    background: #cffafe;
    color: #0e7490;
}

.hp-discover-tile__icon--sold {
    background: #dbeafe;
    color: #1d4ed8;
}

.hp-discover-tile__icon--gift {
    background: #fce7f3;
    color: #be185d;
}

.hp-discover-tile__icon--home {
    background: #e0e7ff;
    color: #4338ca;
}

.hp-discover-tile__icon--wellness {
    background: #dcfce7;
    color: #15803d;
}

.hp-discover-tile__icon--work {
    background: #fef3c7;
    color: #b45309;
}

.hp-discover-tile__icon--travel {
    background: #dbeafe;
    color: #1d4ed8;
}

.hp-discover-tile__icon--learn {
    background: #ede9fe;
    color: #6d28d9;
}

.hp-discover-tile__icon--hosting {
    background: #cffafe;
    color: #0e7490;
}

.hp-discover-tile__icon--payments {
    background: #dcfce7;
    color: #15803d;
}

.hp-discover-tile__icon--marketing {
    background: #ffedd5;
    color: #c2410c;
}

.hp-discover-tile__icon--productivity {
    background: #fae8ff;
    color: #a21caf;
}

.hp-discover-tile__icon--streaming {
    background: #ede9fe;
    color: #6d28d9;
}

.hp-discover-tile__icon--bookings {
    background: #dbeafe;
    color: #1d4ed8;
}

.hp-discover-tile__icon--techai {
    background: #e0e7ff;
    color: #4338ca;
}
