/* ═══════════════════════════════════════════════════════════════
   MEGA MENU - Clean Minimal Design
   ═══════════════════════════════════════════════════════════════ */

/* Nav Item with Dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.dropdown-arrow {
    width: 8px;
    height: 5px;
    opacity: 0.5;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

/* Mega Dropdown Container */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.nav-item-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Inner Box */
.mega-dropdown-inner {
    display: flex;
    background: #0f1218;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mega-dropdown-small .mega-dropdown-inner {
    flex-direction: column;
    overflow: visible;
}

/* Column */
.mega-column {
    width: 200px;
    padding: 16px 0;
    flex-shrink: 0;
}

.mega-column + .mega-column {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Column Title */
.mega-column-title {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 16px 10px;
    margin: 0;
}

/* Menu Links - Clean hover, no indicators */
.mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 450;
    transition: color 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.mega-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Icons */
.mega-icon {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.12s ease;
}

.mega-link:hover .mega-icon {
    opacity: 1;
}

/* Disabled link style */
.mega-link-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.mega-link-disabled:hover {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

/* Badges */
.mega-badge {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-left: auto;
    flex-shrink: 0;
}

.mega-badge.hot {
    background: rgba(245, 158, 11, 0.9);
}

/* Featured Column */
.mega-column-featured {
    width: 220px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
}

.mega-column-featured .mega-column-title {
    padding-left: 0;
    padding-right: 0;
}

.mega-featured-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mega-featured-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.mega-featured-icon {
    font-size: 1.5rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.mega-featured-content {
    min-width: 0;
}

.mega-featured-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-featured-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Small dropdown (Ferramentas) */
.mega-dropdown-small .mega-column {
    width: 290px;
    border-left: none;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH & SEARCH
   ═══════════════════════════════════════════════════════════════ */

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 8px;
}

.search-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-link {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.login-link {
    color: rgba(255, 255, 255, 0.8);
}

.login-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.register-link {
    background: #d4af37;
    color: #0a0c10;
}

.register-link:hover {
    background: #e5c349;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════════ */

.mobile-auth-links {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-auth-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.mobile-auth-btn.login {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-auth-btn.register {
    background: #d4af37;
    color: #0a0c10;
}

/* Mobile Accordion */
.mobile-accordion {
    padding: 8px 0;
}

.mobile-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
}

.mobile-accordion-link {
    flex: 1;
    padding: 12px 8px 12px 16px;
    color: inherit;
    text-decoration: none;
    display: block;
}

.mobile-accordion-toggle {
    padding: 12px 16px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.accordion-arrow {
    transition: transform 0.25s ease;
    opacity: 0.4;
}

.mobile-accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
    opacity: 0.7;
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.mobile-accordion-item.open .mobile-accordion-content {
    max-height: 1200px;
}

.mobile-sub-group {
    padding: 8px 16px 2px 28px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.25);
}

.mobile-sub-group:first-child {
    padding-top: 4px;
}

.mobile-sub-link {
    display: block;
    padding: 9px 16px 9px 40px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.mobile-sub-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile disabled link */
.mobile-sub-link-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.mobile-sub-link-disabled:hover {
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.mobile-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    text-transform: uppercase;
    margin-left: 6px;
}

/* Mobile Nav Direct Links (Autores, Sobre, Contato) */
.mobile-nav-scroll > .nav-item {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.2s ease;
}

.mobile-nav-scroll > .nav-item:hover {
    color: #fff;
}

.mobile-nav-scroll > .nav-item.active {
    color: var(--accent, #d4af37);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .mega-dropdown {
        display: none;
    }
    /* Hide auth links on mobile - they exist in mobile menu */
    .auth-links {
        display: none;
    }
}

@media (max-width: 1280px) {
    .mega-column-featured {
        display: none;
    }
}
