/* Navbar Dropdown Styles - Replaces React state-based dropdowns */

/* Dropdown wrapper - position relative for dropdown positioning */
.nav-item-with-dropdown {
    position: relative;
}

/* Invisible bridge between nav item and dropdown to prevent gap closure */
.nav-item-with-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 20px;
    background: transparent;
    display: none;
}

.nav-item-with-dropdown.dropdown-active::after {
    display: block;
}

/* Dropdown container - hidden by default */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 9999;
    pointer-events: none;
}

/* Show dropdown via JS class only (one at a time) */
.nav-item-with-dropdown.dropdown-active .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Platform dropdown - full width, left aligned */
.nav-dropdown.platform-dropdown {
    left: -20px;
    width: 560px;
    background: linear-gradient(135deg, rgba(5,9,93,0.98), rgba(10,15,60,0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,173,238,0.15);
    border-radius: 16px;
    padding: 20px;
}

/* Solutions dropdown - wide, centered */
.nav-dropdown.solutions-dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 780px;
    background: linear-gradient(135deg, rgba(5,9,93,0.98), rgba(10,15,60,0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,173,238,0.15);
    border-radius: 16px;
    padding: 20px;
    max-height: 75vh;
    overflow-y: auto;
}

.nav-item-with-dropdown.dropdown-active .solutions-dropdown {
    transform: translateX(-50%) translateY(0);
}

/* Industries dropdown */
.nav-dropdown.industries-dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 720px;
    background: linear-gradient(135deg, rgba(5,9,93,0.98), rgba(10,15,60,0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,173,238,0.15);
    border-radius: 16px;
    padding: 20px;
}

.nav-item-with-dropdown.dropdown-active .industries-dropdown {
    transform: translateX(-50%) translateY(0);
}

/* Resources dropdown - right aligned */
.nav-dropdown.resources-dropdown {
    right: -20px;
    width: 420px;
    background: linear-gradient(135deg, rgba(5,9,93,0.98), rgba(10,15,60,0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(198,173,96,0.25);
    border-radius: 16px;
    padding: 20px;
}

/* Group headers */
.dropdown-group-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Dropdown items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    color: inherit;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.06);
}

/* ThunderboltCube icon */
.thunderbolt-cube {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thunderbolt-cube svg {
    width: 14px;
    height: 14px;
}

/* Product name in dropdown */
.dropdown-item-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.dropdown-item-desc {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* Platform dropdown specific */
.platform-group {
    margin-bottom: 20px;
}

.platform-group:last-child {
    margin-bottom: 0;
}

.platform-group-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

/* RewardLion OS special card */
.os-card {
    border: 1px solid rgba(0,173,238,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: background 0.2s;
    position: relative;
    color: inherit;
}

.os-card:hover {
    background: rgba(255,255,255,0.04);
}

.hub-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #00ADEE;
    border: 1px solid rgba(0,173,238,0.3);
    border-radius: 6px;
    padding: 3px 8px;
}

/* Solutions dropdown grid */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 24px;
}

.solutions-header {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.solutions-header-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.solutions-header-desc {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}

/* Industries dropdown grid */
.industries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

/* Resources dropdown */
.resources-group {
    margin-bottom: 16px;
}

.resources-group:last-child {
    margin-bottom: 0;
}

/* Bottom links in dropdowns */
.dropdown-bottom-link {
    display: block;
    text-align: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #00ADEE;
    transition: color 0.2s;
}

.dropdown-bottom-link:hover {
    color: #36DFA6;
}

/* Thunderbolt color variants */
.bolt-cyan { background: rgba(0,173,238,0.15); }
.bolt-cyan svg path { fill: #00ADEE; }
.bolt-green { background: rgba(54,223,166,0.15); }
.bolt-green svg path { fill: #36DFA6; }
.bolt-red { background: rgba(255,73,72,0.15); }
.bolt-red svg path { fill: #FF4948; }
.bolt-yellow { background: rgba(255,209,0,0.15); }
.bolt-yellow svg path { fill: #FFD100; }
.bolt-gold { background: rgba(198,173,96,0.15); }
.bolt-gold svg path { fill: #C6AD60; }
.bolt-white { background: rgba(255,255,255,0.1); }
.bolt-white svg path { fill: #FFFFFF; }
.bolt-navy { background: rgba(5,9,93,0.3); border: 1px solid rgba(0,173,238,0.3); }
.bolt-navy svg path { fill: #00ADEE; }

/* Mobile nav overlay */
@media (max-width: 1023px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
}

@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
    .mobile-nav-overlay { display: none !important; }
}
