/* Menu styles for Team Matrix website */

/* Variables */
:root {
    --matrix-green-bright: #00FF00;
    --matrix-green-medium: #008F11;
    --matrix-green-dark: #003B00;
    --matrix-black: #000000;
    --glow-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
    --transition-speed: 0.3s ease;
}

/* Header styles */
header {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    border-bottom: 1px solid var(--matrix-green-medium);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.95);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--matrix-green-bright);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    text-decoration: none;
    display: inline-block;
}

.logo:hover {
    color: #fff;
    text-shadow: 0 0 15px var(--matrix-green-bright);
}

.matrix-gradient-text {
    background: linear-gradient(to right, var(--matrix-green-bright), var(--matrix-green-medium));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Navigation styles */
.desktop-nav {
    display: block;
}

.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--matrix-green-bright);
    margin: 0 15px;
    position: relative;
    transition: all var(--transition-speed);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--matrix-green-bright);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--matrix-green-bright);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: flex-end;
}

.social-icons a {
    color: var(--matrix-green-bright);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    margin-left: auto;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--matrix-green-bright);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 9px;
}

.hamburger-menu span:nth-child(3) {
    top: 18px;
}

.hamburger-menu.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    padding: 20px;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: var(--matrix-green-bright);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.mobile-menu ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--matrix-green-bright);
}

.mobile-menu .social-icons {
    justify-content: center;
}

.mobile-menu .social-icons a {
    font-size: 1.8rem;
    margin: 0 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .logo {
        font-size: 2rem;
    }
    
    .nav-link {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .social-icons.desktop {
        display: none;
    }
    
    .language-selector.desktop {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .logo {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }
    
    header {
        padding: 15px 0;
    }
    
    header.scrolled {
        padding: 10px 0;
    }
}


/* Mobile Binance Sub-menu Styles */
.mobile-menu .has-submenu {
    position: relative;
}

.mobile-menu .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 50, 0, 0.8);
    border-radius: 8px;
    border: 1px solid var(--matrix-green-medium);
}

.mobile-menu .submenu.open {
    max-height: 400px;
    padding: 15px 0;
}

.mobile-menu .submenu li {
    margin: 10px 0;
    padding: 0 20px;
}

.mobile-menu .submenu li a {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.mobile-menu .submenu li:last-child a {
    border-bottom: none;
}

.mobile-menu .submenu img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--matrix-green-medium);
}

.mobile-menu .submenu .hero-name {
    color: var(--matrix-green-bright);
    font-weight: bold;
}

.mobile-menu .submenu .binance-text {
    color: #F3BA2F;
    font-size: 0.9rem;
}



/* Nav Badge Styles */
.nav-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: super;
    animation: pulse-badge 2s ease-in-out infinite;
}

.nav-badge-green {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
    }
}

/* BTC Wheel Link Styles */
.nav-link-btc-wheel {
    position: relative;
    color: #f7931a !important;
    font-weight: bold;
    animation: pulse-orange-glow 2s ease-in-out infinite;
    z-index: 1;
}

.nav-link-btc-wheel::before {
    content: '⚙';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #f7931a;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link-btc-wheel:hover::before {
    opacity: 0.6;
    animation: spin-wheel 2s linear infinite;
}

.nav-link-btc-wheel:hover {
    color: #ff9f33 !important;
    text-shadow: 0 0 15px rgba(247, 147, 26, 0.8);
}

@keyframes pulse-orange-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(247, 147, 26, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(247, 147, 26, 0.9), 0 0 30px rgba(247, 147, 26, 0.6);
    }
}

@keyframes spin-wheel {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}



/* Socials Dropdown Styles */
.socials-dropdown {
    position: relative;
    margin-right: 15px;
}

.socials-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--matrix-green-medium);
    border-radius: 8px;
    background: rgba(0, 255, 0, 0.05);
}

.socials-icon i {
    font-size: 26.25px;
    color: var(--matrix-green-bright);
    transition: all 0.3s ease;
}

.socials-icon:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: var(--matrix-green-bright);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.socials-icon:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--matrix-green-bright));
}

.socials-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--matrix-green-medium);
    border-radius: 12px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.socials-dropdown:hover .socials-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.socials-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--matrix-green-bright);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.socials-option:last-child {
    border-bottom: none;
}

.socials-option i {
    font-size: 1.3rem;
    margin-right: 12px;
    min-width: 25px;
    text-align: center;
}

.socials-option span {
    font-size: 0.95rem;
    font-weight: 500;
}

.socials-option:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #fff;
    padding-left: 20px;
}

.socials-option:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px var(--matrix-green-bright));
}




/* Mobile Header Icons Layout */
.mobile-header-icons {
    display: none;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

@media (max-width: 768px) {
    /* Show mobile header icons */
    .mobile-header-icons {
        display: flex !important;
    }
    
    /* Hide desktop icons in mobile */
    .col-md-3 > .d-flex {
        display: none !important;
    }
    
    /* Mobile-only elements */
    .mobile-only {
        display: flex !important;
    }
    
    /* Style mobile socials icon - NO BORDER */
    .socials-icon.mobile-only {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        background: transparent;
    }
    
    .socials-icon.mobile-only i {
        font-size: 1.2rem;
        color: var(--matrix-green-bright);
    }
    
    /* Style mobile music button - NO BORDER */
    .music-modal-btn.mobile-only {
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        color: var(--matrix-green-bright);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .music-modal-btn.mobile-only i {
        font-size: 1.2rem;
    }
}

/* Hide mobile-only on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Mobile Socials Menu Styles */
.mobile-socials-menu {
    display: none;
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.3);
}

.mobile-socials-menu.open {
    display: flex;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--matrix-green-bright);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.mobile-social-link:last-child {
    border-bottom: none;
}

.mobile-social-link i {
    font-size: 1.3rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.mobile-social-link:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #fff;
    text-decoration: none;
}

/* Mobile Language Selector - Make it expandable like Binance */
.language-selector.mobile {
    margin-top: 10px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.language-selector.mobile .language-selector-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--matrix-green-medium);
    border-radius: 5px;
    color: var(--matrix-green-bright);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector.mobile .language-selector-toggle:hover {
    background: rgba(0, 255, 0, 0.1);
}

.language-selector.mobile .language-selector-toggle img {
    width: 24px;
    height: 18px;
    margin-right: 10px;
}

.language-selector.mobile .language-selector-toggle span {
    flex: 1;
    font-size: 1.1rem;
}

.language-selector.mobile .language-selector-toggle i {
    transition: transform 0.3s ease;
}

.language-selector.mobile.open .language-selector-toggle i {
    transform: rotate(180deg);
}

.language-selector.mobile .language-selector-dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--matrix-green-medium);
    border-radius: 5px;
}

.language-selector.mobile.open .language-selector-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
}

.language-selector.mobile .language-option {
    padding: 12px 20px;
    font-size: 1.1rem;
}




/* ========================================
   HEADER LAYOUT FIX - PREVENT VERTICAL STACKING
   ======================================== */

/* Ensure header container uses flexbox properly */
header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Force header row to stay horizontal */
header .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Ensure all header columns display inline */
header .col-md-3,
header .col-md-6 {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

/* Keep desktop navigation horizontal */
.desktop-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Ensure right-side icons stay horizontal */
header .col-md-3:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    justify-content: flex-end !important;
}

/* Prevent icon stacking */
.social-icons,
.binance-icon,
.language-selector,
.music-modal-btn {
    display: inline-flex !important;
    align-items: center !important;
}

