/* ========================================
   TOP NAVIGATION BAR - MENU HORIZONTAL FIXE
   ======================================== */

/* Ajustement du body pour le menu fixe */
body {
    padding-top: 60px !important; /* Espace pour le menu fixe */
}

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0B1A2C;
    border-bottom: 2px solid #1da1f2;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.top-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo section */
.top-navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 55px; /* Espace à droite de l'image */
}

.top-navbar-logo img {
    height: 40px;
    width: auto;
}

.top-navbar-logo-text {
    font-size: 26px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: #e9e9e9; /* #1da1f2; */
}

.top-navbar-coin {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Navigation menu */
.top-navbar-menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    margin-left: 40px;
}

.top-navbar-item {
    position: relative;
}

.top-navbar-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 18px 20px;
    color: #8899a6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.top-navbar-link:hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.top-navbar-link.active {
    color: #1da1f2;
    border-bottom-color: #1da1f2;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.top-navbar-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.top-navbar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0B1A2C;
    border: 1px solid #1da1f2;
    border-top: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2001;
}

.top-navbar-item:hover .top-navbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-navbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #8899a6;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(136, 153, 166, 0.1);
}

.top-navbar-dropdown-item:last-child {
    border-bottom: none;
}

.top-navbar-dropdown-item:hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    padding-left: 25px;
}

.top-navbar-dropdown-item.coming-soon {
    color: #4a5568;
    font-style: italic;
    cursor: not-allowed;
}

.top-navbar-dropdown-item.coming-soon:hover {
    background: transparent;
    padding-left: 20px;
}

/* Coin icons in dropdown */
.coin-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* Mobile menu toggle */
.top-navbar-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #1da1f2;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-navbar-menu {
        margin-left: 20px;
    }
    
    .top-navbar-link {
        padding: 18px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .top-navbar-mobile-toggle {
        display: block;
    }
    
    .top-navbar-logo-text {
        font-size: 16px;
    }
    
    .top-navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #0B1A2C;
        border-top: 2px solid #1da1f2;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .top-navbar-menu.active {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .top-navbar-item {
        width: 100%;
        border-bottom: 1px solid rgba(136, 153, 166, 0.1);
    }
    
    .top-navbar-link {
        width: 100%;
        padding: 15px 20px;
        border-bottom: none;
    }
    
    .top-navbar-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .top-navbar-item.dropdown-open .top-navbar-dropdown {
        max-height: 500px;
    }
    
    .top-navbar-dropdown-item {
        padding-left: 40px;
    }
    
    .top-navbar-dropdown-item:hover {
        padding-left: 45px;
    }
}